Fixes #3197 - Allow voice message playback in the background

- inform other audio sessions on deactivation
- let CallKit handle the audioSession for ElementCall
This commit is contained in:
Stefan Ceriu
2024-09-06 10:45:44 +03:00
committed by Stefan Ceriu
parent a0eafe26c3
commit 37ed7addf5
3 changed files with 3 additions and 15 deletions
@@ -119,7 +119,7 @@ class AudioRecorder: AudioRecorderProtocol {
private func releaseAudioSession() {
MXLog.info("releasing audio session")
try? audioSession.setActive(false)
try? audioSession.setActive(false, options: .notifyOthersOnDeactivation)
removeObservers()
}