mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:04:50 -04:00
replace user_id with sender
This commit is contained in:
parent
97c7c34f6f
commit
c5eabe3143
4 changed files with 11 additions and 2 deletions
|
@ -582,6 +582,9 @@ class ReplicationLayer(object):
|
|||
#TODO: Check we have all the PDU keys here
|
||||
pdu_json.setdefault("hashes", {})
|
||||
pdu_json.setdefault("signatures", {})
|
||||
sender = pdu_json.pop("sender", None)
|
||||
if sender is not None:
|
||||
pdu_json["user_id"] = sender
|
||||
state_hash = pdu_json.get("unsigned", {}).pop("state_hash", None)
|
||||
if state_hash is not None:
|
||||
pdu_json["state_hash"] = state_hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue