mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Merge pull request #3960 from matrix-org/rav/fix_missing_create_event_error
Fix error handling for missing auth_event
This commit is contained in:
commit
2b8d28b095
1
changelog.d/3960.bugfix
Normal file
1
changelog.d/3960.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix error message for events with m.room.create missing from auth_events
|
@ -98,9 +98,9 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
|
|||||||
creation_event = auth_events.get((EventTypes.Create, ""), None)
|
creation_event = auth_events.get((EventTypes.Create, ""), None)
|
||||||
|
|
||||||
if not creation_event:
|
if not creation_event:
|
||||||
raise SynapseError(
|
raise AuthError(
|
||||||
403,
|
403,
|
||||||
"Room %r does not exist" % (event.room_id,)
|
"No create event in auth events",
|
||||||
)
|
)
|
||||||
|
|
||||||
creating_domain = get_domain_from_id(event.room_id)
|
creating_domain = get_domain_from_id(event.room_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user