diff --git a/Riot/Managers/Widgets/WidgetManager.m b/Riot/Managers/Widgets/WidgetManager.m index 3595eb4df5..31f33e4074 100644 --- a/Riot/Managers/Widgets/WidgetManager.m +++ b/Riot/Managers/Widgets/WidgetManager.m @@ -412,6 +412,13 @@ - (void)addMatrixSession:(MXSession *)mxSession // Broadcast the generic notification [[NSNotificationCenter defaultCenter] postNotificationName:kWidgetManagerDidUpdateWidgetNotification object:widget]; + // End jitsi call if a active call exists and widget has been updated to not be active + if ([[AppDelegate theDelegate].callPresenter.jitsiVC.widget.widgetId isEqualToString: widget.widgetId] && + [[AppDelegate theDelegate].callPresenter.jitsiVC.widget.roomId isEqualToString: event.roomId] && + !widget.isActive) + { + [[AppDelegate theDelegate].callPresenter endActiveJitsiCall]; + } } else { diff --git a/changelog.d/7706.bugfix b/changelog.d/7706.bugfix new file mode 100644 index 0000000000..0ddbe0ac44 --- /dev/null +++ b/changelog.d/7706.bugfix @@ -0,0 +1 @@ +If a Jitsi call in a room is ongoing when the Jitsi widget is removed from such room the call ends. \ No newline at end of file