From 3604c2de240ffdc789f8422c0684b89d04712880 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Mon, 5 Jul 2021 15:27:36 +0300 Subject: [PATCH 1/2] Do not present ended calls --- Riot/Managers/Call/CallPresenter.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Riot/Managers/Call/CallPresenter.swift b/Riot/Managers/Call/CallPresenter.swift index 4f5ad7e13..940ac98f3 100644 --- a/Riot/Managers/Call/CallPresenter.swift +++ b/Riot/Managers/Call/CallPresenter.swift @@ -393,7 +393,9 @@ class CallPresenter: NSObject { if let oldCallVC = self.callVCs.values.first, self.presentedCallVC == nil, !self.uiOperationQueue.containsPresentCallVCOperation, - !self.uiOperationQueue.containsEnterPiPOperation { + !self.uiOperationQueue.containsEnterPiPOperation, + let oldCall = oldCallVC.mxCall, + oldCall.state != .ended { // present the call screen after dismissing this one self.presentCallVC(oldCallVC) } From 3e1e9ce538779b40f865d19f8bdda3c1156aa092 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Mon, 5 Jul 2021 15:30:43 +0300 Subject: [PATCH 2/2] Update CHANGES.rst --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 2e72d9c8e..982ac85cc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,7 +8,7 @@ Changes to be released in next version * 🐛 Bugfix - * + * VoIP: Do not present ended calls. ⚠️ API Changes *