mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Include stream ordering in the unsigned event dict
This commit is contained in:
parent
535e97da7b
commit
966a886b36
@ -505,6 +505,11 @@ def serialize_event(
|
||||
):
|
||||
d["unsigned"]["transaction_id"] = txn_id
|
||||
|
||||
# Beeper: include internal stream ordering as HS order unsigned hint
|
||||
stream_ordering = getattr(e.internal_metadata, "stream_ordering", None)
|
||||
if stream_ordering:
|
||||
d["unsigned"]["com.beeper.hs.order"] = stream_ordering
|
||||
|
||||
# invite_room_state and knock_room_state are a list of stripped room state events
|
||||
# that are meant to provide metadata about a room to an invitee/knocker. They are
|
||||
# intended to only be included in specific circumstances, such as down sync, and
|
||||
|
Loading…
Reference in New Issue
Block a user