Prevent duplicate room IDs in m.direct
parent
8086a5c05e
commit
c4875d8c76
|
@ -248,8 +248,7 @@ class RoomMemberHandler(object):
|
|||
|
||||
# Check which key this room is under
|
||||
for key, room_id_list in direct_rooms.items():
|
||||
for rid in room_id_list:
|
||||
if rid == old_room_id:
|
||||
if old_room_id in room_id_list and room_id not in room_id_list:
|
||||
# Add new room_id to this key
|
||||
direct_rooms[key].append(room_id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue