summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-03-04 14:44:01 +0000
committerMark Haines <mark.haines@matrix.org>2016-03-04 14:44:01 +0000
commit1b4f4a936fb416d81203fcd66be690f9a04b2b62 (patch)
treee9d7be97688385f7d221822495bbf6ee19401600 /synapse/rest
parentMove the code for formatting push rules into a separate function (diff)
downloadsynapse-1b4f4a936fb416d81203fcd66be690f9a04b2b62.tar.xz
Hook up the push rules stream to account_data in /sync
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/push_rule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py
index edfe28c79b..981d7708db 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -156,7 +156,7 @@ class PushRuleRestServlet(ClientV1RestServlet):
         return 200, {}
 
     def notify_user(self, user_id):
-        stream_id = self.store.get_push_rules_stream_token()
+        stream_id, _ = self.store.get_push_rules_stream_token()
         self.notifier.on_new_event(
             "push_rules_key", stream_id, users=[user_id]
         )