Skip to content
Snippets Groups Projects
Commit 3dbaeef5 authored by Erik Johnston's avatar Erik Johnston
Browse files

Correctly filter states

parent 42ac5f0c
No related branches found
No related tags found
No related merge requests found
......@@ -428,7 +428,7 @@ class PresenceHandler(BaseHandler):
hosts_to_states = {}
for room_id, states in room_ids_to_states.items():
local_states = filter(self.hs.is_mine_id, states)
local_states = filter(lambda s: self.hs.is_mine_id(s.user_id), states)
if not local_states:
continue
......@@ -437,7 +437,7 @@ class PresenceHandler(BaseHandler):
hosts_to_states.setdefault(host, []).extend(local_states)
for user_id, states in users_to_states.items():
local_states = filter(self.hs.is_mine_id, states)
local_states = filter(lambda s: self.hs.is_mine_id(s.user_id), states)
if not local_states:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment