Send down device list change notif when member leaves/rejoins room

This commit is contained in:
Erik Johnston 2017-09-07 15:08:39 +01:00
parent e2fcba038c
commit 53cc8ad35a
3 changed files with 55 additions and 14 deletions

View file

@ -320,7 +320,7 @@ class DeviceHandler(BaseHandler):
# check if this member has changed since any of the extremities
# at the stream_ordering, and add them to the list if so.
for state_dict in prev_state_ids.values():
for state_dict in prev_state_ids.itervalues():
prev_event_id = state_dict.get(key, None)
if not prev_event_id or prev_event_id != event_id:
possibly_changed.add(state_key)