mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 18:23:58 +01:00
Store any incoming presence push in the local cache anyway, even if there's no interested observers (yet *hint*) (SYN-115)
This commit is contained in:
parent
370cd9011e
commit
52f1d3c886
1 changed files with 4 additions and 4 deletions
|
@ -659,10 +659,6 @@ class PresenceHandler(BaseHandler):
|
||||||
if room_ids:
|
if room_ids:
|
||||||
logger.debug(" | %d interested room IDs %r", len(room_ids), room_ids)
|
logger.debug(" | %d interested room IDs %r", len(room_ids), room_ids)
|
||||||
|
|
||||||
if not observers and not room_ids:
|
|
||||||
logger.debug(" | no interested observers or room IDs")
|
|
||||||
continue
|
|
||||||
|
|
||||||
state = dict(push)
|
state = dict(push)
|
||||||
del state["user_id"]
|
del state["user_id"]
|
||||||
|
|
||||||
|
@ -683,6 +679,10 @@ class PresenceHandler(BaseHandler):
|
||||||
self._user_cachemap_latest_serial += 1
|
self._user_cachemap_latest_serial += 1
|
||||||
statuscache.update(state, serial=self._user_cachemap_latest_serial)
|
statuscache.update(state, serial=self._user_cachemap_latest_serial)
|
||||||
|
|
||||||
|
if not observers and not room_ids:
|
||||||
|
logger.debug(" | no interested observers or room IDs")
|
||||||
|
continue
|
||||||
|
|
||||||
self.push_update_to_clients(
|
self.push_update_to_clients(
|
||||||
observed_user=user,
|
observed_user=user,
|
||||||
users_to_push=observers,
|
users_to_push=observers,
|
||||||
|
|
Loading…
Reference in a new issue