From c61e2f742e53330a2c1d9a283206b790bb57eb23 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Mon, 31 Mar 2025 14:43:22 +1100 Subject: [PATCH] renaming to make things less confusing --- Session/Calls/Call Management/SessionCallManager.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Session/Calls/Call Management/SessionCallManager.swift b/Session/Calls/Call Management/SessionCallManager.swift index 8568d7d85..b0a020246 100644 --- a/Session/Calls/Call Management/SessionCallManager.swift +++ b/Session/Calls/Call Management/SessionCallManager.swift @@ -228,18 +228,18 @@ public final class SessionCallManager: NSObject, CallManagerProtocol { DispatchQueue.main.async { guard dependencies[singleton: .appContext].isMainAppAndActive, - let presentingVC: UIViewController = dependencies[singleton: .appContext].frontMostViewController + let currentFrontMostViewController: UIViewController = dependencies[singleton: .appContext].frontMostViewController else { return } if - let conversationVC: ConversationVC = presentingVC as? ConversationVC, + let conversationVC: ConversationVC = currentFrontMostViewController as? ConversationVC, conversationVC.viewModel.threadData.threadId == call.sessionId { let callVC = CallVC(for: call, using: dependencies) callVC.conversationVC = conversationVC conversationVC.resignFirstResponder() conversationVC.hideInputAccessoryView() - presentingVC.present(callVC, animated: true, completion: nil) + currentFrontMostViewController.present(callVC, animated: true, completion: nil) } else if !Preferences.isCallKitSupported { let incomingCallBanner = IncomingCallBanner(for: call, using: dependencies)