fix(Chat): Corrected click behavior in members list

Closes #5637
This commit is contained in:
Alexandra Betouni 2022-05-10 13:35:39 +03:00 committed by Iuri Matias
parent 4db64841eb
commit f62b0ca99c
1 changed files with 3 additions and 4 deletions

View File

@ -111,10 +111,7 @@ Item {
wrapper.hovered = false
}
onClicked: {
if (mouse.button === Qt.LeftButton) {
Global.openProfilePopup(wrapper.publicKey);
}
else if (mouse.button === Qt.RightButton && !!messageContextMenu) {
if (mouse.button === Qt.RightButton) {
// Set parent, X & Y positions for the messageContextMenu
messageContextMenu.parent = rectangle
messageContextMenu.setXPosition = function() { return 0}
@ -126,6 +123,8 @@ Item {
messageContextMenu.selectedUserDisplayName = wrapper.name
messageContextMenu.selectedUserIcon = wrapper.iconToShow
messageContextMenu.popup()
} else if (mouse.button === Qt.LeftButton && !!messageContextMenu) {
Global.openProfilePopup(wrapper.publicKey);
}
}
}