fix(profile): set ens name correctly

Fixes #5574
This commit is contained in:
Jonathan Rainville 2022-05-10 14:59:36 -04:00
parent 1cf701a758
commit 12d99f7c96
1 changed files with 1 additions and 3 deletions

View File

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