0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-24 13:38:19 +02:00

Remove dead notify_for_states presence method (#9408)

This commit is contained in:
Andrew Morgan 2021-02-17 17:32:26 +00:00 committed by GitHub
parent 3e5749b99f
commit a25661b2eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

1
changelog.d/9408.misc Normal file
View file

@ -0,0 +1 @@
Clean up an unused method in the presence handler code.

View file

@ -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.