mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 22:53:52 +01:00
Add stuff pulled from the DB to the cache
This commit is contained in:
parent
8351538873
commit
fe95f2217c
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue