Remove dead notify_for_states presence method (#9408)
This commit is contained in:
parent
3e5749b99f
commit
a25661b2eb
|
@ -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)
|
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):
|
def _push_to_remotes(self, states):
|
||||||
"""Sends state updates to remote servers.
|
"""Sends state updates to remote servers.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue