mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix to-device messages not being sent to MSC3202-enabled appservices (#13235)
The field name was simply incorrect, leading to errors.
This commit is contained in:
parent
f1711e1f5c
commit
d736d5cfad
1
changelog.d/13235.bugfix
Normal file
1
changelog.d/13235.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix MSC3202-enabled appservices not receiving to-device messages, preventing messages from being decrypted.
|
@ -331,8 +331,9 @@ class _ServiceQueuer:
|
||||
)
|
||||
|
||||
# Add recipients of to-device messages.
|
||||
# device_message["user_id"] is the ID of the recipient.
|
||||
users.update(device_message["user_id"] for device_message in to_device_messages)
|
||||
users.update(
|
||||
device_message["to_user_id"] for device_message in to_device_messages
|
||||
)
|
||||
|
||||
# Compute and return the counts / fallback key usage states
|
||||
otk_counts = await self._store.count_bulk_e2e_one_time_keys_for_as(users)
|
||||
|
Loading…
Reference in New Issue
Block a user