summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-13 13:50:03 +0000
committerErik Johnston <erik@matrix.org>2017-02-13 13:50:03 +0000
commit9e617cd4c2da527caf93799e286b42352ad492d2 (patch)
treef704af83069af931659657a88ebaba6ac7cf6de8 /synapse/handlers
parentMerge pull request #1912 from matrix-org/markjh/roominitialsync (diff)
downloadsynapse-9e617cd4c2da527caf93799e286b42352ad492d2.tar.xz
Cache get_presence storage
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index fdfce2a88c..da610e430f 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -531,7 +531,7 @@ class PresenceHandler(object):
             # There are things not in our in memory cache. Lets pull them out of
             # the database.
             res = yield self.store.get_presence_for_users(missing)
-            states.update({state.user_id: state for state in res})
+            states.update(res)
 
             missing = [user_id for user_id, state in states.items() if not state]
             if missing: