mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
Sort by weight only
This commit is contained in:
parent
0f9668c062
commit
2b91e456e8
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue