From 12d99f7c962971ab706ff0757cf1af28a5b56d4d Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 10 May 2022 14:59:36 -0400 Subject: [PATCH] fix(profile): set ens name correctly Fixes #5574 --- src/app/boot/app_controller.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/boot/app_controller.nim b/src/app/boot/app_controller.nim index 61dd8f680a..0567c8a8ad 100644 --- a/src/app/boot/app_controller.nim +++ b/src/app/boot/app_controller.nim @@ -369,12 +369,10 @@ proc buildAndRegisterUserProfile(self: AppController) = elif(img.imgType == "thumbnail"): thumbnail = img.uri - let meAsContact = self.contactsService.getContactById(pubKey) - singletonInstance.userProfile.setFixedData(loggedInAccount.name, loggedInAccount.keyUid, pubKey) singletonInstance.userProfile.setDisplayName(displayName) singletonInstance.userProfile.setPreferredName(preferredName) - singletonInstance.userProfile.setEnsName(meAsContact.name) + singletonInstance.userProfile.setEnsName(firstEnsName) singletonInstance.userProfile.setFirstEnsName(firstEnsName) singletonInstance.userProfile.setThumbnailImage(thumbnail) singletonInstance.userProfile.setLargeImage(large)