fix(@wallet): address input keep loading

In case of a public key, the loader was always visible and an ephemeral
notification was display but it should not

Also, the show not found is disabled if there is no contact list being
displayed
This commit is contained in:
Anthony Laibe 2022-06-23 11:08:38 +02:00 committed by Anthony Laibe
parent 65e91fac44
commit c34ee41971
2 changed files with 2 additions and 2 deletions

View File

@ -707,7 +707,7 @@ method resolveENS*[T](self: Module[T], ensName: string, uuid: string, reason: st
self.controller.resolveENS(ensName, uuid, reason) self.controller.resolveENS(ensName, uuid, reason)
method resolvedENS*[T](self: Module[T], publicKey: string, address: string, uuid: string, reason: string) = method resolvedENS*[T](self: Module[T], publicKey: string, address: string, uuid: string, reason: string) =
if(publicKey.len == 0): if(reason.len > 0 and publicKey.len == 0):
self.displayEphemeralNotification("Unexisting contact", "Wrong public key or ens name", "", false, EphemeralNotificationType.Default.int, "") self.displayEphemeralNotification("Unexisting contact", "Wrong public key or ens name", "", false, EphemeralNotificationType.Default.int, "")
return return

View File

@ -114,7 +114,7 @@ Item {
ensUsername.text = ""; ensUsername.text = "";
searchResults.pubKey = pubKey = ""; searchResults.pubKey = pubKey = "";
searchResults.address = ""; searchResults.address = "";
searchResults.showProfileNotFoundMessage = true searchResults.showProfileNotFoundMessage = root.showContactList
} else { } else {
if (userProfile.pubKey === resolvedPubKey) { if (userProfile.pubKey === resolvedPubKey) {
//% "Can't chat with yourself" //% "Can't chat with yourself"