Use m.custom for widget type

As per https://github.com/matrix-org/matrix-doc/issues/1236
pull/21833/head
Travis Ralston 2019-03-26 09:23:17 -06:00 committed by GitHub
parent 8cca1bef23
commit f61a6104b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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."));
}