From c310e6f35c84c29d24e51ceb0b6ed3515c9c87a6 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Wed, 16 Feb 2022 23:25:19 +0100
Subject: [PATCH] Fix hover highlight when hovering hover menu

fixes #941
---
 resources/qml/MessageView.qml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index e6186e9d5..98adb2a9b 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -409,6 +409,8 @@ ScrollView {
 
                 opacity: 0
                 visible: true
+                z: 1
+                enabled: false
                 color: Nheko.colors.highlight
 
                 states: State {
@@ -473,7 +475,7 @@ ScrollView {
             TimelineRow {
                 id: timelinerow
 
-                hovered: wrapper.hovered
+                hovered: (wrapper.hovered && !messageActionHover.hovered) || (messageActions.model != undefined && messageActions.model.eventId == timelinerow.eventId)
 
                 proportionalHeight: wrapper.proportionalHeight
                 type: chat.model, wrapper.type
-- 
GitLab