Skip to content
Snippets Groups Projects
Commit 307f94dc authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Squash room_ids list to a set() to remove duplicates - with TODO marker as I...

Squash room_ids list to a set() to remove duplicates - with TODO marker as I have no idea /why/ the dups are happening in the first place
parent 3bf2b4bc
No related branches found
No related tags found
No related merge requests found
......@@ -519,7 +519,11 @@ class RoomMemberHandler(BaseHandler):
user_id=user.to_string(), membership_list=membership_list
)
defer.returnValue([r.room_id for r in rooms])
# For some reason the list of events contains duplicates
# TODO(paul): work out why because I really don't think it should
room_ids = set(r.room_id for r in rooms)
defer.returnValue(room_ids)
@defer.inlineCallbacks
def _do_local_membership_update(self, event, membership, snapshot,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment