From f61a6104b557b268995ea55f227b2c55cb2789ad Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 26 Mar 2019 09:23:17 -0600 Subject: [PATCH] Use m.custom for widget type As per https://github.com/matrix-org/matrix-doc/issues/1236 --- src/SlashCommands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlashCommands.js b/src/SlashCommands.js index fbacaef7c27..1c64e15cc87 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -620,7 +620,7 @@ export const CommandMap = { const nowMs = (new Date()).getTime(); const widgetId = encodeURIComponent(`${roomId}_${userId}_${nowMs}`); return success(WidgetUtils.setRoomWidget( - roomId, widgetId, "customwidget", args, "Custom Widget", {})); + roomId, widgetId, "m.custom", args, "Custom Widget", {})); } else { return reject(_t("You cannot modify widgets in this room.")); }