From ceb104799a43e9cdb3e57975fa4217f0492dae2e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 19 Dec 2021 11:25:47 +0200 Subject: [PATCH] Revert 7539c22904eb109787e19ac08e19e86969e0056a...79eb634423e67d394860d77767614abf1ca36cee on Enabling the widget --- Enabling-the-widget.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Enabling-the-widget.md b/Enabling-the-widget.md index beb5fd1..496e669 100644 --- a/Enabling-the-widget.md +++ b/Enabling-the-widget.md @@ -3,6 +3,7 @@ contain sensitive data. 2. Using `/devtools` in Element Web, edit the `m.widgets` account data event to have the following content: + ```json { "stickerpicker": { @@ -12,19 +13,23 @@ "name": "Stickerpicker", "data": {} }, - "sender": "@you:picker.url", + "sender": "@you:matrix.server.name", "state_key": "stickerpicker", "type": "m.widget", "id": "stickerpicker" } } ``` + If you do not yet have a `m.widgets` event, simply create it with that content. You can also [use the client-server API directly][1] instead of using Element Web. + The `theme=$theme` query parameter will make the widget conform to Element's theme automatically. You can also use `light`, `dark` or `black` instead of `$theme` to always use a specific theme. + You can use https://maunium.net/stickers-demo/ as the URL to try out the picker without hosting the files yourself. 3. Open the sticker picker and enjoy the fast sticker picking experience. -[1]: https://matrix.org/docs/spec/client_server/latest#put-matrix-client-r0-user-userid-account-data-type \ No newline at end of file + +[1]: https://matrix.org/docs/spec/client_server/latest#put-matrix-client-r0-user-userid-account-data-type