From 2f516ebb2334679fdef0158dcc2a67a5dd0c6bc5 Mon Sep 17 00:00:00 2001 From: "Jae Lo Presti (DN0)" Date: Wed, 17 Aug 2022 20:34:45 +0300 Subject: [PATCH] MSC3868: add "badge_uri" parameter that links to a MXC URI Other changes: - Added comment on possible benefit from MSC3468 Co-authored-by: Aminda Suomalainen --- proposals/3868-room-contribution.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/proposals/3868-room-contribution.md b/proposals/3868-room-contribution.md index 34247993..8b1c6072 100644 --- a/proposals/3868-room-contribution.md +++ b/proposals/3868-room-contribution.md @@ -11,7 +11,9 @@ This proposal implements a new `m.room.contribute` state event. This state event link to a git repo or any kind of URI and a "text" parameter that may contain the text of the button directing to the support link. There may be multiple "uri" and "text" parameters, each adding a different button containing a different link. Alternatively to the "uri" parameter, a "copy" one can be specified and will tell clients to copy the value in -the clipboard. +the clipboard. Another, optional, "badge_uri" parameter may be specified and only may contain a MXC URI to a image +media. When specified, the image, or badge, is displayed in place of the text, the text becoming the `alt` property +of said image. An example of this event would look like this: ```json @@ -32,6 +34,11 @@ An example of this event would look like this: { "text": "Donation IBAN", "copy": "CH5604835012345678009" + }, + { + "uri": "https://liberapay.com/foo", + "text": "Support us on LiberaPay", + "badge_uri": "mxc://jae.fi/5d718eb34d05c8b6b1304e2a106aa800400476a6" } ] } @@ -60,3 +67,6 @@ Unstable implementations should use the state event type of `eu.dn0.msc3868.rev1 The authors believe this MSC could benefit from [MSC3414: Encrypted State Events](https://github.com/matrix-org/matrix-spec-proposals/pull/3414) while not considering it as a blocker. +Given the use of MXC URIs to display badges, the implementation of +[MSC3468: MXC to Hashes](https://github.com/matrix-org/matrix-spec-proposals/pull/3468) +would benefit the current MSC while, again, not blocking its implementation.