Skip to content

Commit

Permalink
Don't enforce MXC URIs, but also don't confuse people
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jun 11, 2019
1 parent de725c2 commit 04930c6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ properties:
type: integer
thumbnail_url:
description: |-
The `MXC URI`_ to a thumbnail of the image. Only present if the
thumbnail is unencrypted.
The URL (typically `MXC URI`_) to a thumbnail of the image.
Only present if the thumbnail is unencrypted.
type: string
thumbnail_file:
description: |-
Expand Down
4 changes: 3 additions & 1 deletion event-schemas/schema/m.room.message$m.audio
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ properties:
- m.audio
type: string
url:
description: Required if the file is not encrypted. The `MXC URI`_ to the audio clip.
description: |-
Required if the file is not encrypted. The URL (typically `MXC URI`_)
to the audio clip.
type: string
file:
description: |-
Expand Down
4 changes: 3 additions & 1 deletion event-schemas/schema/m.room.message$m.file
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ properties:
- m.file
type: string
url:
description: Required if the file is unencrypted. The `MXC URI`_ to the file.
description: |-
Required if the file is unencrypted. The URL (typically `MXC URI`_)
to the file.
type: string
file:
description: |-
Expand Down
4 changes: 3 additions & 1 deletion event-schemas/schema/m.room.message$m.image
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ properties:
- m.image
type: string
url:
description: Required if the file is unencrypted. The `MXC URI`_ to the image.
description: |-
Required if the file is unencrypted. The URL (typically `MXC URI`_)
to the image.
type: string
file:
description: |-
Expand Down
8 changes: 5 additions & 3 deletions event-schemas/schema/m.room.message$m.video
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ properties:
type: integer
thumbnail_url:
description: |-
The `MXC URI`_ to an image thumbnail of the video clip. Only present if the
thumbnail is unencrypted.
The URL (typically `MXC URI`_) to an image thumbnail of
the video clip. Only present if the thumbnail is unencrypted.
type: string
thumbnail_file:
description: |-
Expand All @@ -48,7 +48,9 @@ properties:
- m.video
type: string
url:
description: Required if the file is unencrypted. The `MXC URI`_ to the video clip.
description: |-
Required if the file is unencrypted. The URL (typically `MXC URI`_)
to the video clip.
type: string
file:
description: |-
Expand Down

0 comments on commit 04930c6

Please sign in to comment.