diff --git a/data/event-schemas/schema/m.call.hangup.yaml b/data/event-schemas/schema/m.call.hangup.yaml index 46ae419a..94f77636 100644 --- a/data/event-schemas/schema/m.call.hangup.yaml +++ b/data/event-schemas/schema/m.call.hangup.yaml @@ -21,7 +21,7 @@ description: | the new call unless the user had specifically chosen to do so. * `unknown_error`: Some other failure occurred that meant the client was unable to continue the call rather than the user choosing to end it. -x-weight: 70 +x-weight: 80 allOf: - "$ref": core-event-schema/room_event.yaml properties: diff --git a/data/event-schemas/schema/m.call.sdp_stream_metadata_changed.yaml b/data/event-schemas/schema/m.call.sdp_stream_metadata_changed.yaml index 69e67eb1..1ff2dca8 100644 --- a/data/event-schemas/schema/m.call.sdp_stream_metadata_changed.yaml +++ b/data/event-schemas/schema/m.call.sdp_stream_metadata_changed.yaml @@ -1,6 +1,6 @@ type: object x-addedInMatrixVersion: "1.11" -x-weight: 60 +x-weight: 70 description: |- This event is sent by callers when they wish to update a stream's metadata but no negotiation is required. diff --git a/layouts/shortcodes/event-group.html b/layouts/shortcodes/event-group.html index 53687953..7b80a964 100644 --- a/layouts/shortcodes/event-group.html +++ b/layouts/shortcodes/event-group.html @@ -25,8 +25,8 @@ {{ end }} {{ end }} -{{/* Render the events sorted by x-weight or otherwise their event name */}} -{{ range sort $events "event_data.x-weight" "event_name" }} +{{/* Render the events sorted by x-weight */}} +{{ range sort $events "event_data.x-weight" }} {{ $path := delimit (slice $base_path .event_name) "/" }} {{ $event_data := partial "json-schema/resolve-refs" (dict "schema" .event_data "path" $path) }}