fix(Syncing): cancelling syncing flow should not result in error dialog (#14633)

Closes #11908
This commit is contained in:
Roman Chornii 2024-05-13 14:24:29 +03:00 committed by GitHub
parent 5fbc262dec
commit f965ab4540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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 =