summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-08 13:27:36 +0100
committerErik Johnston <erik@matrix.org>2015-04-08 13:33:38 +0100
commit07d404170934db8bc3aa3ae8ac89ceb25cd2e9a1 (patch)
treedf3221b13464602f2eb17d2e28f944c5505668ef
parentFix --enable-registration flag to work if you don't give a value (diff)
downloadsynapse-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.py3
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)