Sort by weight only

This commit is contained in:
Johannes Marbach 2024-10-15 08:43:56 +02:00
parent 0f9668c062
commit 2b91e456e8
3 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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.

View file

@ -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) }}