mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Add stuff pulled from the DB to the cache
This commit is contained in:
parent
8351538873
commit
fe95f2217c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user