Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Use m.custom for widget type
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored Mar 26, 2019
1 parent 8cca1be commit f61a610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SlashCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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."));
}
Expand Down

0 comments on commit f61a610

Please sign in to comment.