You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Tweak /addwidget widget names (#7681)
				
					
				
			This commit is contained in:
		@@ -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();
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user