From 2af803c1bb682330eddeb0285fdd63c61fe2d864 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 11 Sep 2020 10:17:37 +0100 Subject: [PATCH] remove unused stuff --- src/TextForEvent.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 9fc584750a..a76c1f59e6 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -476,9 +476,6 @@ function textForWidgetEvent(event) { const {name: prevName, type: prevType, url: prevUrl} = event.getPrevContent(); const {name, type, url} = event.getContent() || {}; - const prevWidgetType = WidgetType.fromString(prevType); - const widgetType = WidgetType.fromString(type); - if (WidgetType.JITSI.matches(type) || WidgetType.JITSI.matches(prevType)) { return textForJitsiWidgetEvent(event, senderName, url, prevUrl); }