From f62b0ca99c66d488030ba97f02e5fae0642e0a30 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Tue, 10 May 2022 13:35:39 +0300 Subject: [PATCH] fix(Chat): Corrected click behavior in members list Closes #5637 --- ui/app/AppLayouts/Chat/controls/UserDelegate.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Chat/controls/UserDelegate.qml b/ui/app/AppLayouts/Chat/controls/UserDelegate.qml index 652e616023..80aa7b5326 100644 --- a/ui/app/AppLayouts/Chat/controls/UserDelegate.qml +++ b/ui/app/AppLayouts/Chat/controls/UserDelegate.qml @@ -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); } } }