You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Use m.custom for widget type
As per https://github.com/matrix-org/matrix-doc/issues/1236
This commit is contained in:
@@ -620,7 +620,7 @@ export const CommandMap = {
|
|||||||
const nowMs = (new Date()).getTime();
|
const nowMs = (new Date()).getTime();
|
||||||
const widgetId = encodeURIComponent(`${roomId}_${userId}_${nowMs}`);
|
const widgetId = encodeURIComponent(`${roomId}_${userId}_${nowMs}`);
|
||||||
return success(WidgetUtils.setRoomWidget(
|
return success(WidgetUtils.setRoomWidget(
|
||||||
roomId, widgetId, "customwidget", args, "Custom Widget", {}));
|
roomId, widgetId, "m.custom", args, "Custom Widget", {}));
|
||||||
} else {
|
} else {
|
||||||
return reject(_t("You cannot modify widgets in this room."));
|
return reject(_t("You cannot modify widgets in this room."));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user