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