Skip to content

Commit

Permalink
fix completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Nov 7, 2023
1 parent 6be83ec commit 3a1f5d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Riot/Managers/Widgets/WidgetManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,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) {
[[AppDelegate theDelegate].callPresenter endActiveJitsiCall];
}
}
else
{
Expand Down
4 changes: 0 additions & 4 deletions Riot/Modules/Room/RoomViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -5947,10 +5947,6 @@ - (void)listenWidgetNotifications
[self refreshRoomTitle];
// Remove Jitsi widget view update
[self refreshRemoveJitsiWidgetView];
// End call if the widget is removed
if ([self isRoomHavingAJitsiCall]) {
[self endActiveJitsiCall];
}
}
}];
}
Expand Down

0 comments on commit 3a1f5d5

Please sign in to comment.