From c508e59ff8c3ce91bfe0478a71f1b7e1fead6840 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 7 Oct 2024 12:50:42 -0400 Subject: [PATCH] simply object return --- ui/app/mainui/Popups.qml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/ui/app/mainui/Popups.qml b/ui/app/mainui/Popups.qml index d46bf22203..0f2f6a8d65 100644 --- a/ui/app/mainui/Popups.qml +++ b/ui/app/mainui/Popups.qml @@ -152,19 +152,8 @@ QtObject { function getContactDetails(publicKey) { const details = Utils.getContactDetailsAsJson(publicKey) - return { - publicKey: publicKey, - localNickname: details.localNickname, - name: details.name, - displayName: details.displayName, - alias: details.alias, - ensVerified: details.ensVerified, - onlineStatus: details.onlineStatus, - largeImage: details.largeImage, - isContact: details.isContact, - trustStatus: details.trustStatus, - isBlocked: details.isBlocked - } + details.publicKey = publicKey + return details } function openNicknamePopup(publicKey: string, contactDetails, cb) {