mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-24 20:03:21 -05:00
Return the stable event field from /send_join per MSC3083. (#11413)
This does not remove the unstable field and still parses both. Handling of the unstable field will need to be removed in the future.
This commit is contained in:
parent
7564b8e118
commit
9d1971a5c4
5 changed files with 19 additions and 4 deletions
|
|
@ -613,8 +613,11 @@ class FederationServer(FederationBase):
|
|||
state = await self.store.get_events(state_ids)
|
||||
|
||||
time_now = self._clock.time_msec()
|
||||
event_json = event.get_pdu_json()
|
||||
return {
|
||||
"org.matrix.msc3083.v2.event": event.get_pdu_json(),
|
||||
# TODO Remove the unstable prefix when servers have updated.
|
||||
"org.matrix.msc3083.v2.event": event_json,
|
||||
"event": event_json,
|
||||
"state": [p.get_pdu_json(time_now) for p in state.values()],
|
||||
"auth_chain": [p.get_pdu_json(time_now) for p in auth_chain],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue