From ece6e180a776d94e24539c192530a99ffae8e68c Mon Sep 17 00:00:00 2001 From: Max Radermacher Date: Wed, 21 Jun 2023 15:56:14 -0500 Subject: [PATCH] Remove redundant code when starting a 1:1 call The callee already performs the same check. --- .../ConversationViewController+Calls.swift | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController+Calls.swift b/Signal/src/ViewControllers/ConversationView/ConversationViewController+Calls.swift index 2ec942e534..7e1da2c6f4 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController+Calls.swift +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController+Calls.swift @@ -86,20 +86,10 @@ public extension ConversationViewController { return } - let didShowSNAlert = self.showSafetyNumberConfirmationIfNecessary(confirmationText: CallStrings.confirmAndCallButtonTitle, - completion: { [weak self] didConfirmIdentity in - if didConfirmIdentity { - self?.startIndividualCall(withVideo: withVideo) - } - }) - if didShowSNAlert { - return - } - // We initiated a call, so if there was a pending message request we should accept it. ThreadUtil.addThreadToProfileWhitelistIfEmptyOrPendingRequestAndSetDefaultTimerWithSneakyTransaction(thread) - callService.initiateCall(thread: contactThread, isVideo: withVideo) + NotificationCenter.default.post(name: ChatListViewController.clearSearch, object: nil) }