Remove redundant code when starting a 1:1 call

The callee already performs the same check.
This commit is contained in:
Max Radermacher 2023-06-21 15:56:14 -05:00
parent 2f621c27b9
commit ece6e180a7

View File

@ -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)
}