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)