Skip to content

Commit

Permalink
safer check
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Nov 7, 2023
1 parent 75e17b6 commit f759ce4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Riot/Managers/Widgets/WidgetManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ - (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] && !widget.isActive) {
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];
}
}
Expand Down

0 comments on commit f759ce4

Please sign in to comment.