mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-17 21:13:53 +01:00
Fix tests
This commit is contained in:
parent
34e682d385
commit
1e166470ab
1 changed files with 3 additions and 3 deletions
|
@ -266,6 +266,9 @@ def serialize_event(e, time_now_ms, as_client_event=True,
|
||||||
if txn_id is not None:
|
if txn_id is not None:
|
||||||
d["unsigned"]["transaction_id"] = txn_id
|
d["unsigned"]["transaction_id"] = txn_id
|
||||||
|
|
||||||
|
if not is_invite:
|
||||||
|
d["unsigned"].pop("invite_room_state", None)
|
||||||
|
|
||||||
if as_client_event:
|
if as_client_event:
|
||||||
d = event_format(d)
|
d = event_format(d)
|
||||||
|
|
||||||
|
@ -275,7 +278,4 @@ def serialize_event(e, time_now_ms, as_client_event=True,
|
||||||
raise TypeError("only_event_fields must be a list of strings")
|
raise TypeError("only_event_fields must be a list of strings")
|
||||||
d = only_fields(d, only_event_fields)
|
d = only_fields(d, only_event_fields)
|
||||||
|
|
||||||
if not is_invite:
|
|
||||||
d["unsigned"].pop("invite_room_state", None)
|
|
||||||
|
|
||||||
return d
|
return d
|
||||||
|
|
Loading…
Reference in a new issue