mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 21:28:35 -04:00
Merge branch 'notifier_performance' into markjh/presence_performance
This commit is contained in:
commit
880fb46de0
13 changed files with 295 additions and 160 deletions
|
@ -363,6 +363,8 @@ class PresenceHandler(BaseHandler):
|
|||
curr_users = yield rm_handler.get_room_members(room_id)
|
||||
|
||||
for local_user in [c for c in curr_users if self.hs.is_mine(c)]:
|
||||
statuscache = self._get_or_offline_usercache(local_user)
|
||||
statuscache.update({}, serial=self._user_cachemap_latest_serial)
|
||||
self.push_update_to_local_and_remote(
|
||||
observed_user=local_user,
|
||||
users_to_push=[user],
|
||||
|
@ -952,6 +954,8 @@ class PresenceHandler(BaseHandler):
|
|||
"""
|
||||
with PreserveLoggingContext():
|
||||
self.notifier.on_new_user_event(
|
||||
"presence_key",
|
||||
self._user_cachemap_latest_serial,
|
||||
users_to_push,
|
||||
room_ids,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue