Voice broadcast connection error handling while recording (#7282)

This commit is contained in:
Yoan Pintas
2023-01-18 16:27:13 +00:00
committed by GitHub
parent 152fc60aa1
commit d34cebc6be
13 changed files with 152 additions and 49 deletions
@@ -100,8 +100,14 @@ final class AppCoordinator: NSObject, AppCoordinatorType {
if AppDelegate.theDelegate().isOffline {
self.splitViewCoordinator?.showAppStateIndicator(with: VectorL10n.networkOfflineTitle, icon: UIImage(systemName: "wifi.slash"))
// Pause voice broadcast recording without sending pending events.
VoiceBroadcastRecorderProvider.shared.pauseRecordingOnError()
} else {
self.splitViewCoordinator?.hideAppStateIndicator()
// Send pause voice broadcast event.
VoiceBroadcastRecorderProvider.shared.pauseRecording()
}
}