Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove dead notify_for_states presence method (#9408)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Feb 17, 2021
1 parent 3e5749b commit a25661b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions changelog.d/9408.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up an unused method in the presence handler code.
11 changes: 0 additions & 11 deletions synapse/handlers/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,17 +660,6 @@ async def _persist_and_notify(self, states):

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.
Expand Down

0 comments on commit a25661b

Please sign in to comment.