Fix joining from an invite

This commit is contained in:
Erik Johnston 2014-12-09 14:47:27 +00:00
parent aa3f66cf7f
commit 5eca288d28
4 changed files with 20 additions and 17 deletions

View file

@ -166,13 +166,15 @@ class StateHandler(object):
prev_state
)
if hasattr(event, "auth_events"):
if hasattr(event, "auth_events") and event.auth_events:
auth_ids = zip(*event.auth_events)[0]
context.auth_events = {
k: v
for k, v in context.current_state.items()
if v.event_id in auth_ids
}
else:
context.auth_events = {}
defer.returnValue(prev_state)