Skip to content

Commit

Permalink
Clarify that m.room.avatar url can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Mar 8, 2022
1 parent 3747d8b commit 3a83793
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/event-schemas/schema/m.room.avatar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ 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.
Despite this field being required, it is allowed to be `null` to cover
the case of an event that unsets a previously-set avatar.
type: string
nullable: true
required:
- url
type: object
Expand Down

0 comments on commit 3a83793

Please sign in to comment.