From 6caf649211ba33d4170c1a7a8430b0ec8d1a9629 Mon Sep 17 00:00:00 2001 From: DemonWareXT Date: Sun, 19 Dec 2021 00:23:43 +0100 Subject: [PATCH] Updated Enabling the widget (markdown) --- Enabling-the-widget.md | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/Enabling-the-widget.md b/Enabling-the-widget.md index 496e669..b14578c 100644 --- a/Enabling-the-widget.md +++ b/Enabling-the-widget.md @@ -6,19 +6,22 @@ ```json { - "stickerpicker": { - "content": { - "type": "m.stickerpicker", - "url": "https://your.sticker.picker.url/?theme=$theme", - "name": "Stickerpicker", - "data": {} - }, - "sender": "@you:matrix.server.name", - "state_key": "stickerpicker", - "type": "m.widget", - "id": "stickerpicker" - } - } + "type": "m.widgets", + "content": { + "stickerpicker": { + "content": { + "type": "m.stickerpicker", + "url": "https://demonwarext.github.io/stickerpicker/web/?theme=$theme", + "name": "Stickerpicker", + "data": {} + }, + "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.