mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03:00
Remove dead notify_for_states presence method (#9408)
This commit is contained in:
parent
3e5749b99f
commit
a25661b2eb
2 changed files with 1 additions and 11 deletions
1
changelog.d/9408.misc
Normal file
1
changelog.d/9408.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Clean up an unused method in the presence handler code.
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue