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

Remove dead notify_for_states presence method #9408

Merged
merged 2 commits into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -658,17 +658,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