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

Commit a25661b

Browse files
Remove dead notify_for_states presence method (#9408)
1 parent 3e5749b commit a25661b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

changelog.d/9408.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clean up an unused method in the presence handler code.

synapse/handlers/presence.py

-11
Original file line numberDiff line numberDiff line change
@@ -660,17 +660,6 @@ async def _persist_and_notify(self, states):
660660

661661
self._push_to_remotes(states)
662662

663-
async def notify_for_states(self, state, stream_id):
664-
parties = await get_interested_parties(self.store, [state])
665-
room_ids_to_states, users_to_states = parties
666-
667-
self.notifier.on_new_event(
668-
"presence_key",
669-
stream_id,
670-
rooms=room_ids_to_states.keys(),
671-
users=[UserID.from_string(u) for u in users_to_states],
672-
)
673-
674663
def _push_to_remotes(self, states):
675664
"""Sends state updates to remote servers.
676665

0 commit comments

Comments
 (0)