summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-12-12 14:28:15 +0000
committerErik Johnston <erik@matrix.org>2016-12-12 14:28:15 +0000
commit631376e2ac4ab896fa6a53c51a2445d1596231e5 (patch)
tree128a823021dd256b14894081d212ec2edbcc8dcb /synapse
parentDocstring (diff)
downloadsynapse-631376e2ac4ab896fa6a53c51a2445d1596231e5.tar.xz
Notify replication. Use correct network_id
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/room.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py
index 277ccf2901..36aa8c5f83 100644
--- a/synapse/storage/room.py
+++ b/synapse/storage/room.py
@@ -138,6 +138,7 @@ class RoomStore(SQLBaseStore):
                 "set_room_is_public",
                 set_room_is_public_txn, next_id,
             )
+        self.hs.get_notifier().on_new_replication_data()
 
     @defer.inlineCallbacks
     def set_room_is_public_appservice(self, room_id, appservice_id, network_id,
@@ -164,7 +165,7 @@ class RoomStore(SQLBaseStore):
                         table="appservice_room_list",
                         values={
                             "appservice_id": appservice_id,
-                            "network_id": "network_id",
+                            "network_id": network_id,
                             "room_id": room_id
                         },
                     )
@@ -217,6 +218,7 @@ class RoomStore(SQLBaseStore):
                 "set_room_is_public_appservice",
                 set_room_is_public_appservice_txn, next_id,
             )
+        self.hs.get_notifier().on_new_replication_data()
 
     def get_public_room_ids(self):
         return self._simple_select_onecol(