1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-06 16:06:52 +00:00

Add stuff pulled from the DB to the cache

This commit is contained in:
Erik Johnston 2016-02-18 10:26:24 +00:00
parent 8351538873
commit fe95f2217c

View file

@ -443,10 +443,12 @@ class PresenceHandler(BaseHandler):
missing = [user_id for user_id, state in states.items() if not state]
if missing:
states.update({
new = {
user_id: UserPresenceState.default(user_id)
for user_id in missing
})
}
states.update(new)
self.user_to_current_state.update(new)
defer.returnValue(states)