mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-24 00:16:39 +02:00
Set voice broadcast recording to pause when the app goes in background and when the RVC will disappear
This commit is contained in:
@@ -610,6 +610,9 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
||||
// Analytics: Force to send the pending actions
|
||||
[[DecryptionFailureTracker sharedInstance] dispatch];
|
||||
[Analytics.shared forceUpload];
|
||||
|
||||
// Pause Voice Broadcast recording if needed
|
||||
[VoiceBroadcastRecorderProvider.shared pauseRecording];
|
||||
}
|
||||
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application
|
||||
|
||||
@@ -598,6 +598,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
isAppeared = NO;
|
||||
|
||||
[VoiceMessageMediaServiceProvider.sharedProvider pauseAllServices];
|
||||
[VoiceBroadcastRecorderProvider.shared pauseRecording];
|
||||
|
||||
// Stop the loading indicator even if the session is still in progress
|
||||
[self stopLoadingUserIndicator];
|
||||
|
||||
Reference in New Issue
Block a user