matrix-spec-proposals
matrix-spec-proposals copied to clipboard
MSC2192: Inline widgets
Disclaimer: This is currently a set of ideas and may not be complete or ideal.
Early implementation: https://github.com/matrix-org/matrix-react-sdk/pull/3252 For https://github.com/vector-im/riot-web/issues/10060 and related issues.
It could interesting to allow to set links in options value for m.buttons (for simple webhooks). In this case when the button is tapped, client should 'submit' the url Like:
"options": [
{
"label": "Do that",
"value": "https://example.org/api/do?param=xxx"
}
In this case the compatibilty body would construct links:
[Do that](https://example.org/api/do?param=xxx) -> Do that
(Clients SHOULD probably ask users permissions (once) to share data with this domain)
This can be extended to more 'uri' than https://, for example it could be messageto (act like a mailto)
"value": "messateto:@user:example.org?content={ ... }"
Any recommandation for edits / redacts of m.response or m.options ?
Any recommandation for poll result display by client?
- See results before voting?
- Display results as percent? abs value?
- Display current total number of votes
- Show a visual indicator of current user vote
Early implementation in riotX https://github.com/vector-im/riotX-android/pull/810
@BillCarsonFr please always use threads so things can be replied to. I've moved your comments.
Allowed HTML tags can be extended instead.