mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:54:50 -04:00
Fix joining from an invite
This commit is contained in:
parent
aa3f66cf7f
commit
5eca288d28
4 changed files with 20 additions and 17 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue