diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-02-17 17:32:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 17:32:26 +0000 |
commit | a25661b2eb058019ffcd035f6a5371c09782b950 (patch) | |
tree | 599065e2537a6c2c0e98373c13ac5cd901d8745c /synapse/handlers/presence.py | |
parent | Fix only handling the last presence state for each user (#9425) (diff) | |
download | synapse-a25661b2eb058019ffcd035f6a5371c09782b950.tar.xz |
Remove dead notify_for_states presence method (#9408)
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/presence.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index ed90b5d457..fb85b19770 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -660,17 +660,6 @@ class PresenceHandler(BasePresenceHandler): self._push_to_remotes(states) - async def notify_for_states(self, state, stream_id): - parties = await get_interested_parties(self.store, [state]) - room_ids_to_states, users_to_states = parties - - self.notifier.on_new_event( - "presence_key", - stream_id, - rooms=room_ids_to_states.keys(), - users=[UserID.from_string(u) for u in users_to_states], - ) - def _push_to_remotes(self, states): """Sends state updates to remote servers. |