mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
Fix appservice EDUs failing to send if the EDU doesn't have a room ID (#13236)
* Fix appservice EDUs failing to send if the EDU doesn't have a room ID As is in the case of presence. * changelog * linter * fix linter again
This commit is contained in:
parent
28d96cb2b4
commit
a113011794
2 changed files with 4 additions and 1 deletions
1
changelog.d/13236.bugfix
Normal file
1
changelog.d/13236.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix appservices not receiving room-less EDUs, like presence, if enabled.
|
|
@ -319,7 +319,9 @@ class _ServiceQueuer:
|
|||
rooms_of_interesting_users.update(event.room_id for event in events)
|
||||
# EDUs
|
||||
rooms_of_interesting_users.update(
|
||||
ephemeral["room_id"] for ephemeral in ephemerals
|
||||
ephemeral["room_id"]
|
||||
for ephemeral in ephemerals
|
||||
if ephemeral.get("room_id") is not None
|
||||
)
|
||||
|
||||
# Look up the AS users in those rooms
|
||||
|
|
Loading…
Reference in a new issue