Merge pull request #4529 from vector-im/voip_fix_call_transfer

VoIP: Fix Call Transfer
This commit is contained in:
ismailgulek
2021-07-06 11:14:38 +03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ Changes to be released in next version
*
🐛 Bugfix
*
* VoIP: Do not present ended calls.
⚠️ API Changes
*
+3 -1
View File
@@ -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)
}