mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Pause the voicebroadcast recording if the homeserver is not reachable
This commit is contained in:
@@ -100,14 +100,8 @@ 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()
|
||||
self.splitViewCoordinator?.hideAppStateIndicator()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user