mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-12 23:59:39 -05:00
Add missing None check
This commit is contained in:
parent
2bca242fdc
commit
e549aac127
@ -155,7 +155,7 @@ class Auth(object):
|
|||||||
# Get room creation event:
|
# Get room creation event:
|
||||||
key = (RoomCreateEvent.TYPE, "", )
|
key = (RoomCreateEvent.TYPE, "", )
|
||||||
create = event.old_state_events.get(key)
|
create = event.old_state_events.get(key)
|
||||||
if event.prev_events[0][0] == create.event_id:
|
if create and event.prev_events[0][0] == create.event_id:
|
||||||
if create.content["creator"] == event.state_key:
|
if create.content["creator"] == event.state_key:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user