mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 23:12:41 +00:00
Explicitly add Create event as auth event
This commit is contained in:
parent
9434ad729a
commit
0ef17169c4
1 changed files with 2 additions and 2 deletions
|
@ -660,7 +660,7 @@ class FederationHandler(BaseHandler):
|
||||||
"event": e,
|
"event": e,
|
||||||
"auth_events": {
|
"auth_events": {
|
||||||
(e.type, e.state_key): e for e in auth_chain
|
(e.type, e.state_key): e for e in auth_chain
|
||||||
if e.event_id in auth_ids
|
if e.event_id in auth_ids or e.type == EventTypes.Create
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -669,7 +669,7 @@ class FederationHandler(BaseHandler):
|
||||||
auth_ids = [e_id for e_id, _ in event.auth_events]
|
auth_ids = [e_id for e_id, _ in event.auth_events]
|
||||||
auth_events = {
|
auth_events = {
|
||||||
(e.type, e.state_key): e for e in auth_chain
|
(e.type, e.state_key): e for e in auth_chain
|
||||||
if e.event_id in auth_ids
|
if e.event_id in auth_ids or e.type == EventTypes.Create
|
||||||
}
|
}
|
||||||
|
|
||||||
_, event_stream_id, max_stream_id = yield self._handle_new_event(
|
_, event_stream_id, max_stream_id = yield self._handle_new_event(
|
||||||
|
|
Loading…
Reference in a new issue