From a93afe8c69ac6a95f6edf76d3c8e3dc22ebfc5cd Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 11 Sep 2020 09:57:13 +0100 Subject: [PATCH] Check jitsi type in proper way --- src/TextForEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 82324aa57f..9fc584750a 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -479,7 +479,7 @@ function textForWidgetEvent(event) { const prevWidgetType = WidgetType.fromString(prevType); const widgetType = WidgetType.fromString(type); - if (widgetType === WidgetType.JITSI || prevWidgetType === WidgetType.JITSI) { + if (WidgetType.JITSI.matches(type) || WidgetType.JITSI.matches(prevType)) { return textForJitsiWidgetEvent(event, senderName, url, prevUrl); }