mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 16:16:03 -04:00
Bundle in some room state in the unsigned bit of the invite when sending to invited servers
This commit is contained in:
parent
184a5c81f0
commit
49ae42bbe1
4 changed files with 35 additions and 7 deletions
|
@ -103,7 +103,10 @@ def format_event_raw(d):
|
|||
def format_event_for_client_v1(d):
|
||||
d["user_id"] = d.pop("sender", None)
|
||||
|
||||
move_keys = ("age", "redacted_because", "replaces_state", "prev_content")
|
||||
move_keys = (
|
||||
"age", "redacted_because", "replaces_state", "prev_content",
|
||||
"invite_room_state",
|
||||
)
|
||||
for key in move_keys:
|
||||
if key in d["unsigned"]:
|
||||
d[key] = d["unsigned"][key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue