mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Rename fields to _ids
This commit is contained in:
parent
bcc9cda8ca
commit
edb33eb163
@ -322,8 +322,8 @@ class FederationClient(FederationBase):
|
|||||||
destination, room_id, event_id=event_id,
|
destination, room_id, event_id=event_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
state_event_ids = result["pdus"]
|
state_event_ids = result["pdu_ids"]
|
||||||
auth_event_ids = result.get("auth_chain", [])
|
auth_event_ids = result.get("auth_chain_ids", [])
|
||||||
|
|
||||||
fetched_events, failed_to_fetch = yield self.get_events(
|
fetched_events, failed_to_fetch = yield self.get_events(
|
||||||
[destination], room_id, set(state_event_ids + auth_event_ids)
|
[destination], room_id, set(state_event_ids + auth_event_ids)
|
||||||
|
@ -231,8 +231,8 @@ class FederationServer(FederationBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
defer.returnValue((200, {
|
defer.returnValue((200, {
|
||||||
"pdus": [pdu.event_id for pdu in pdus],
|
"pdu_ids": [pdu.event_id for pdu in pdus],
|
||||||
"auth_chain": [pdu.event_id for pdu in auth_chain],
|
"auth_chain_ids": [pdu.event_id for pdu in auth_chain],
|
||||||
}))
|
}))
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
Loading…
Reference in New Issue
Block a user