Check jitsi type in proper way

This commit is contained in:
David Baker 2020-09-11 09:57:13 +01:00
parent 18be4cb202
commit a93afe8c69

View file

@ -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);
}