diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2022-02-03 14:51:18 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2022-02-03 15:35:37 +0000 |
commit | c26f7f7caedb41c6a6ac30fd5385501446bdd125 (patch) | |
tree | f633e6c545e8f57d14b31f5dfa4273fe8f59a162 | |
parent | Add a ratelimiter for 3pid invite (#11892) (diff) | |
download | synapse-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.py | 5 |
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( |