1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-03 00:33:22 +03:00

Tweak /addwidget widget names (#7681)

This commit is contained in:
J. Ryan Stinnett
2022-01-31 15:37:49 +00:00
committed by GitHub
parent 655f473612
commit f99ae6d46a

View File

@@ -945,7 +945,7 @@ export const Commands = [
const nowMs = (new Date()).getTime();
const widgetId = encodeURIComponent(`${roomId}_${userId}_${nowMs}`);
let type = WidgetType.CUSTOM;
let name = "Custom Widget";
let name = "Custom";
let data = {};
// Make the widget a Jitsi widget if it looks like a Jitsi widget
@@ -953,7 +953,7 @@ export const Commands = [
if (jitsiData) {
logger.log("Making /addwidget widget a Jitsi conference");
type = WidgetType.JITSI;
name = "Jitsi Conference";
name = "Jitsi";
data = jitsiData;
widgetUrl = WidgetUtils.getLocalJitsiWrapperUrl();
}