mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Remove dead notify_for_states presence method (#9408)
This commit is contained in:
parent
3e5749b99f
commit
a25661b2eb
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 New Issue
Block a user