Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticker messages (m.sticker) #1158

Merged
merged 19 commits into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion event-schemas/schema/m.sticker
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ properties:
Metadata about the image referred to in ``url`` including a thumbnail
representation.
url:
description: The URL to the sticker image.
description: |-
The URL to the sticker image. This must be a valid ``mxc://`` URI.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, if we're expecting clients to check this, we should probably say so.

type: string
required:
- body
Expand Down
2 changes: 0 additions & 2 deletions specification/modules/stickers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ Client behaviour
Clients supporting this message type should display the image content from the
event URL directly in the timeline.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to have some warning about sanitising URLs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, hopefully clarifying that we expect these to be valid MXC URIs should be enough(?)


The event ``url`` key must specify a valid ``mxc://`` URI.

A thumbnail image should be provided in the ``info`` object. This is
largely intended as a fallback for clients that do not fully support the
``m.sticker`` event type. In most cases it is fine to set the thumbnail URL to the
Expand Down