From d26d4d4f8ad9d4008a72d8db98429b854ef51105 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 3 Mar 2021 14:13:33 +1100 Subject: [PATCH] Fix crash --- Session/Basic Chats/NewPrivateChatVC.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Session/Basic Chats/NewPrivateChatVC.swift b/Session/Basic Chats/NewPrivateChatVC.swift index b12b90e6d..13d768444 100644 --- a/Session/Basic Chats/NewPrivateChatVC.swift +++ b/Session/Basic Chats/NewPrivateChatVC.swift @@ -126,7 +126,7 @@ final class NewPrivateChatVC : BaseVC, UIPageViewControllerDataSource, UIPageVie fileprivate func startNewPrivateChatIfPossible(with onsNameOrPublicKey: String) { if ECKeyPair.isValidHexEncodedPublicKey(candidate: onsNameOrPublicKey) { - startNewPrivateChatIfPossible(with: onsNameOrPublicKey) + startNewPrivateChat(with: onsNameOrPublicKey) } else { // This could be an ONS name ModalActivityIndicatorViewController.present(fromViewController: navigationController!, canCancel: false) { [weak self] modalActivityIndicator in