From f965ab4540b311d7ccff180c06e6d58281d7893d Mon Sep 17 00:00:00 2001 From: Roman Chornii Date: Mon, 13 May 2024 14:24:29 +0300 Subject: [PATCH] fix(Syncing): cancelling syncing flow should not result in error dialog (#14633) Closes #11908 --- src/app/modules/main/profile_section/devices/module.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/modules/main/profile_section/devices/module.nim b/src/app/modules/main/profile_section/devices/module.nim index 1189899b76..3dddef6220 100644 --- a/src/app/modules/main/profile_section/devices/module.nim +++ b/src/app/modules/main/profile_section/devices/module.nim @@ -113,6 +113,8 @@ method onLoggedInUserAuthenticated*(self: Module, pin: string, password: string, if chatKey.startsWith("0x"): chatKey = chatKey[2..^1] let connectionString = self.controller.getConnectionStringForBootstrappingAnotherDevice(password, chatKey) + if password.len == 0 and pin.len == 0: + return self.view.openPopupWithConnectionString(connectionString) proc validateConnectionString*(self: Module, connectionString: string): string =