From 7025793ca85ec928a163fa83a4c94268c30fb32a Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 7 Nov 2016 16:17:25 +0000 Subject: [PATCH] Say that thumbnails should be 'mxc://' --- specification/modules/instant_messaging.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/modules/instant_messaging.rst b/specification/modules/instant_messaging.rst index 11595b70..342050a7 100644 --- a/specification/modules/instant_messaging.rst +++ b/specification/modules/instant_messaging.rst @@ -71,6 +71,12 @@ Events which have attachments (e.g. ``m.image``, ``m.file``) SHOULD be uploaded using the `content repository module`_ where available. The resulting ``mxc://`` URI can then be used in the ``url`` key. +Clients MAY include a client generated thumbnail image for an attachment under +a ``info.thumbnail_url`` key. The thumbnail SHOULD also be a ``mxc://`` URI. +Clients displaying events with attachments can either use the client generated +thumbnail or ask its homeserver to generate a thumbnail from the original +attachment using the `content repository module`_. + .. _`content repository module`: `module:content`_ Recommendations when sending messages