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
@@ -251,8 +251,6 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe
// MARK: - Private
func tearDownCallSession(sendEndCallAction: Bool = true) {
try? AVAudioSession.sharedInstance().setActive(false)
if sendEndCallAction, let ongoingCallID {
let transaction = CXTransaction(action: CXEndCallAction(call: ongoingCallID.callKitID))
callController.request(transaction) { error in