summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-02 12:52:51 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-02 12:52:51 +0100
commita6ab7305b97f6863422a95a7a23940fbb09345a8 (patch)
tree4069fb3c2ecc10bd450128005b95ddcbde30f016 /synapse/handlers
parentProd the main synapse with the list of syncing users (diff)
parentFixes (diff)
downloadsynapse-a6ab7305b97f6863422a95a7a23940fbb09345a8.tar.xz
Merge branch 'markjh/external_presence' into markjh/synchrotron
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 21e3028d37..fc8538b41e 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -175,7 +175,7 @@ class PresenceHandler(object):
         # Stored as a dict from process_id to set of user_id, and a dict of
         # process_id to millisecond timestamp last updated.
         self.external_process_to_current_syncs = {}
-        self.external_process_last_updated_ms = []
+        self.external_process_last_updated_ms = {}
 
         # Start a LoopingCall in 30s that fires every 5s.
         # The initial delay is to allow disconnected clients a chance to
@@ -422,7 +422,7 @@ class PresenceHandler(object):
         # Grab the current presence state for both the users that are syncing
         # now and the users that were syncing before this update.
         prev_states = yield self.current_state_for_users(
-            syncing_user_ids + prev_syncing_user_ids
+            syncing_user_ids | prev_syncing_user_ids
         )
         updates = []
         time_now_ms = self.clock.time_msec()