mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Return auth chain when handling send_join
This commit is contained in:
parent
16a0815fac
commit
3b4dec442d
2 changed files with 27 additions and 8 deletions
|
@ -366,10 +366,19 @@ class FederationHandler(BaseHandler):
|
|||
|
||||
yield self.replication_layer.send_pdu(new_pdu)
|
||||
|
||||
defer.returnValue([
|
||||
auth_chain = yield self.store.get_auth_chain(event.event_id)
|
||||
pdu_auth_chain = [
|
||||
self.pdu_codec.pdu_from_event(e)
|
||||
for e in event.state_events.values()
|
||||
])
|
||||
for e in auth_chain
|
||||
]
|
||||
|
||||
defer.returnValue({
|
||||
"state": [
|
||||
self.pdu_codec.pdu_from_event(e)
|
||||
for e in event.state_events.values()
|
||||
],
|
||||
"auth_chain": pdu_auth_chain,
|
||||
})
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def get_state_for_pdu(self, event_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue