diff --git a/src/app/modules/shared_models/message_item.nim b/src/app/modules/shared_models/message_item.nim index 338e36d212..41288f7d3e 100644 --- a/src/app/modules/shared_models/message_item.nim +++ b/src/app/modules/shared_models/message_item.nim @@ -146,7 +146,8 @@ proc initItem*( if result.quotedMessageAuthorAvatar == "": result.quotedMessageAuthorAvatar = quotedMessageDiscordMessage.author.avatarUrl else: - result.quotedMessageAuthorDisplayName = quotedMessageAuthorDetails.details.displayName + result.quotedMessageAuthorDisplayName = if quotedMessageAuthorDetails.details.localNickname != "": quotedMessageAuthorDetails.details.localNickname + else: quotedMessageAuthorDetails.details.displayName result.quotedMessageAuthorAvatar = quotedMessageAuthorDetails.details.image.thumbnail if contentType == ContentType.DiscordMessage: diff --git a/ui/app/AppLayouts/Chat/panels/UserListPanel.qml b/ui/app/AppLayouts/Chat/panels/UserListPanel.qml index 649dd3cb61..db52d96ddd 100644 --- a/ui/app/AppLayouts/Chat/panels/UserListPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/UserListPanel.qml @@ -96,7 +96,7 @@ Item { messageContextMenu.isProfile = true messageContextMenu.myPublicKey = userProfile.pubKey messageContextMenu.selectedUserPublicKey = model.pubKey - messageContextMenu.selectedUserDisplayName = model.displayName + messageContextMenu.selectedUserDisplayName = nickName || userName messageContextMenu.selectedUserIcon = model.icon messageContextMenu.popup(4, 4) } else if (mouse.button === Qt.LeftButton && !!messageContextMenu) { diff --git a/ui/imports/shared/views/chat/MessageView.qml b/ui/imports/shared/views/chat/MessageView.qml index 6d3644cded..4008548714 100644 --- a/ui/imports/shared/views/chat/MessageView.qml +++ b/ui/imports/shared/views/chat/MessageView.qml @@ -641,7 +641,7 @@ Loader { sender.isContact: quotedMessageAuthorDetailsIsContact sender.displayName: quotedMessageAuthorDetailsDisplayName sender.isEnsVerified: quotedMessageAuthorDetailsEnsVerified - sender.secondaryName: quotedMessageAuthorDetailsName || "" + sender.secondaryName: quotedMessageAuthorDetailsName sender.profileImage { width: 20 height: 20