summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2022-02-03 14:51:18 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2022-02-03 15:35:37 +0000
commitc26f7f7caedb41c6a6ac30fd5385501446bdd125 (patch)
treef633e6c545e8f57d14b31f5dfa4273fe8f59a162
parentAdd a ratelimiter for 3pid invite (#11892) (diff)
downloadsynapse-c26f7f7caedb41c6a6ac30fd5385501446bdd125.tar.xz
Derive users to notify from user streams in on_new_event
Otherwise we were completely ignoring all users discovered from rooms being passed
to this function.
-rw-r--r--synapse/notifier.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index 5988c67d90..39bb78626c 100644
--- a/synapse/notifier.py
+++ b/synapse/notifier.py
@@ -458,7 +458,10 @@ class Notifier:
                 self.appservice_handler.notify_interested_services_ephemeral(
                     stream_key,
                     new_token,
-                    users,
+                    [
+                        UserID.from_string(user_stream.user_id)
+                        for user_stream in user_streams
+                    ],
                 )
             except Exception:
                 logger.exception(