summary refs log tree commit diff
path: root/synapse/appservice/scheduler.py
diff options
context:
space:
mode:
authorTravis Ralston <travisr@matrix.org>2022-07-11 07:12:28 -0600
committerGitHub <noreply@github.com>2022-07-11 14:12:28 +0100
commita11301179494f5a2924dcd60069c06f5c192020f (patch)
treee9d34139394878e7806a24a317b9cc2e6aeb2116 /synapse/appservice/scheduler.py
parentEnsure portdb selects _all_ rows with negative rowids (#13226) (diff)
downloadsynapse-a11301179494f5a2924dcd60069c06f5c192020f.tar.xz
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
Diffstat (limited to 'synapse/appservice/scheduler.py')
-rw-r--r--synapse/appservice/scheduler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py
index de5e5216c2..6c8695346f 100644
--- a/synapse/appservice/scheduler.py
+++ b/synapse/appservice/scheduler.py
@@ -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