From 17448083cff010a418f6a35fd5f01e31f6e4312b Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 22 Mar 2022 14:33:12 +0100 Subject: [PATCH] Clarify that the url field in `m.room.avatar` events is not required. #987) --- changelogs/client_server/newsfragments/987.clarification | 1 + data/event-schemas/schema/m.room.avatar.yaml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 changelogs/client_server/newsfragments/987.clarification diff --git a/changelogs/client_server/newsfragments/987.clarification b/changelogs/client_server/newsfragments/987.clarification new file mode 100644 index 00000000..fbc7008c --- /dev/null +++ b/changelogs/client_server/newsfragments/987.clarification @@ -0,0 +1 @@ +Clarify that the url field in `m.room.avatar` events is not required. diff --git a/data/event-schemas/schema/m.room.avatar.yaml b/data/event-schemas/schema/m.room.avatar.yaml index 7d4b90b1..a4777af4 100644 --- a/data/event-schemas/schema/m.room.avatar.yaml +++ b/data/event-schemas/schema/m.room.avatar.yaml @@ -10,10 +10,10 @@ properties: - $ref: core-event-schema/msgtype_infos/image_info.yaml description: Metadata about the image referred to in `url`. url: - description: The URL to the image. + description: |- + 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 - required: - - url type: object state_key: description: A zero-length string.