mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Use m.custom for widget type
As per https://github.com/matrix-org/matrix-doc/issues/1236
This commit is contained in:
parent
8cca1bef23
commit
f61a6104b5
@ -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."));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user