mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-06 09:04:09 +02:00
Improvements to CS API "Instant messaging" module (#2370)
This commit is contained in:
parent
0baab558ed
commit
ec24e73db1
|
|
@ -0,0 +1 @@
|
|||
Clarify formats of string types.
|
||||
|
|
@ -197,7 +197,7 @@ To ensure this is done consistently across clients, clients SHOULD use
|
|||
the following algorithm to calculate a disambiguated display name for a
|
||||
given user:
|
||||
|
||||
1. Inspect the `m.room.member` state event for the relevant user id.
|
||||
1. Inspect the [`m.room.member`](#mroommember) state event for the relevant user id.
|
||||
2. If the `m.room.member` state event has no `displayname` field, or if
|
||||
that field has a `null` value, use the raw user id as the display
|
||||
name. Otherwise:
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ properties:
|
|||
description: |-
|
||||
The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris)) to a thumbnail of the image.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
thumbnail_info:
|
||||
allOf:
|
||||
- $ref: thumbnail_info.yaml
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ properties:
|
|||
The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris)) to a thumbnail of the image.
|
||||
Only present if the thumbnail is unencrypted.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
thumbnail_file:
|
||||
description: |-
|
||||
Information on the encrypted thumbnail file, as specified in
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ properties:
|
|||
The URL to the image. If this property is not present, the room has no avatar. This can be useful
|
||||
to remove a previous room avatar.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
type: object
|
||||
state_key:
|
||||
description: A zero-length string.
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ properties:
|
|||
Required if the file is unencrypted. The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris))
|
||||
to the audio clip.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
file:
|
||||
description: |-
|
||||
Required if the file is encrypted. Information on the encrypted
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ properties:
|
|||
The URL to the thumbnail of the file. Only present if the
|
||||
thumbnail is unencrypted.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
thumbnail_file:
|
||||
description: |-
|
||||
Information on the encrypted thumbnail file, as specified in
|
||||
|
|
@ -66,6 +68,8 @@ properties:
|
|||
Required if the file is unencrypted. The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris))
|
||||
to the file.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
file:
|
||||
description: |-
|
||||
Required if the file is encrypted. Information on the encrypted
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ properties:
|
|||
Required if the file is unencrypted. The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris))
|
||||
to the image.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
file:
|
||||
description: |-
|
||||
Required if the file is encrypted. Information on the encrypted
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ properties:
|
|||
geo_uri:
|
||||
description: A [geo URI (RFC5870)](https://datatracker.ietf.org/doc/html/rfc5870) representing this location.
|
||||
type: string
|
||||
format: uri
|
||||
pattern: "^geo:"
|
||||
msgtype:
|
||||
enum:
|
||||
- m.location
|
||||
|
|
@ -25,6 +27,8 @@ properties:
|
|||
The URL to a thumbnail of the location being represented.
|
||||
Only present if the thumbnail is unencrypted.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
thumbnail_file:
|
||||
description: |-
|
||||
Information on the encrypted thumbnail file, as specified in
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ properties:
|
|||
The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris)) to an image thumbnail of
|
||||
the video clip. Only present if the thumbnail is unencrypted.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
thumbnail_file:
|
||||
description: |-
|
||||
Information on the encrypted thumbnail file, as specified in
|
||||
|
|
@ -76,6 +78,8 @@ properties:
|
|||
Required if the file is unencrypted. The URL (typically [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris))
|
||||
to the video clip.
|
||||
type: string
|
||||
format: mx-mxc-uri
|
||||
pattern: "^mxc:\\/\\/"
|
||||
file:
|
||||
description: |-
|
||||
Required if the file is encrypted. Information on the encrypted
|
||||
|
|
|
|||
|
|
@ -4,16 +4,19 @@ $schema: https://json-schema.org/draft/2020-12/schema
|
|||
allOf:
|
||||
- $ref: core-event-schema/state_event.yaml
|
||||
description: |-
|
||||
A room has an opaque room ID which is not human-friendly to read. A room
|
||||
alias is human-friendly, but not all rooms have room aliases. The room name
|
||||
is a human-friendly string designed to be displayed to the end-user. The
|
||||
room name is not unique, as multiple rooms can have the same room name set.
|
||||
A room has an opaque [room ID](/appendices#room-ids) which is not
|
||||
human-friendly to read. A [room alias](appendices#room-aliases) is
|
||||
human-friendly, but not all rooms have [room aliases](/client-server-api/#room-aliases).
|
||||
The room name is a human-friendly string designed to be displayed to the
|
||||
end-user. The room name is not unique, as multiple rooms can have the same
|
||||
room name set.
|
||||
|
||||
If a room has an `m.room.name` event with an absent, null, or empty `name`
|
||||
field, it should be treated the same as a room with no `m.room.name` event.
|
||||
|
||||
An event of this type is automatically created when creating a room using
|
||||
`/createRoom` with the `name` key.
|
||||
[`/createRoom`](/client-server-api/#post_matrixclientv3createroom) with the
|
||||
`name` key.
|
||||
properties:
|
||||
content:
|
||||
properties:
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ properties:
|
|||
description: An ordered list of event IDs to pin.
|
||||
items:
|
||||
type: string
|
||||
format: mx-event-id
|
||||
pattern: "^\\$"
|
||||
type: array
|
||||
required:
|
||||
- pinned
|
||||
|
|
|
|||
Loading…
Reference in a new issue