You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Check jitsi type in proper way
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user