diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-08 13:27:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-08 13:33:38 +0100 |
commit | 07d404170934db8bc3aa3ae8ac89ceb25cd2e9a1 (patch) | |
tree | df3221b13464602f2eb17d2e28f944c5505668ef | |
parent | Fix --enable-registration flag to work if you don't give a value (diff) | |
download | synapse-07d404170934db8bc3aa3ae8ac89ceb25cd2e9a1.tar.xz |
Fix bug where we didn't inform the NotificataionListeners about new rooms they have been subscribed to. This meant that the listeners didn't clean themselves up fully from all the dicts
-rw-r--r-- | synapse/notifier.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py index 7121d659d0..b12b54353e 100644 --- a/synapse/notifier.py +++ b/synapse/notifier.py @@ -427,3 +427,6 @@ class Notifier(object): listeners = self.room_to_listeners.setdefault(room_id, set()) listeners |= new_listeners + + for l in new_listeners: + l.rooms.add(room_id) |