Handle notifications properly when a call is happening. (#3276)

This commit is contained in:
Doug
2024-09-13 15:50:29 +01:00
committed by GitHub
parent ce83aec760
commit 93daaf554f
6 changed files with 52 additions and 12 deletions
@@ -643,6 +643,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
.sink { [weak self] action in
guard let self else { return }
switch action {
case .pictureInPictureIsAvailable:
break
case .pictureInPictureStarted, .pictureInPictureStopped:
// Don't allow PiP when signed out - the user could login at which point we'd
// need to hand over the call from here to the user session flow coordinator.