Tweak `/addwidget` widget names (#7681)

pull/21833/head
J. Ryan Stinnett 2022-01-31 15:37:49 +00:00 committed by GitHub
parent 655f473612
commit f99ae6d46a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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