fix(chat): fix nickname not populated when clicking profile head in menu

This commit is contained in:
Jonathan Rainville 2021-11-30 15:39:48 -05:00
parent cbd9ee5d67
commit 4cfc1de6a8
1 changed files with 6 additions and 2 deletions

View File

@ -80,6 +80,10 @@ StatusPopupMenu {
popup()
}
function openProfileClicked() {
openProfilePopup(userName, fromAuthor, identicon, "", nickname);
}
Item {
id: emojiContainer
width: emojiRow.width
@ -150,7 +154,7 @@ StatusPopupMenu {
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
openProfilePopup(userName, fromAuthor, identicon);
root.openProfileClicked()
root.close()
}
}
@ -235,7 +239,7 @@ StatusPopupMenu {
//% "View Profile"
text: qsTrId("view-profile")
onTriggered: {
openProfilePopup(userName, fromAuthor, identicon, "", nickname);
root.openProfileClicked()
root.close()
}
icon.name: "profile"