From 3916be738b1efb9a5a1a94359730f5c443907a4c Mon Sep 17 00:00:00 2001
From: Vincent Petry <vincent@nextcloud.com>
Date: Fri, 13 Nov 2020 17:50:49 +0100
Subject: Adjustments for highlight message

Added rounded borders.

Whenever the hash changes as a result of clicking a link, the message is
now also highlighted. However, it seems the browser already teleports
there so scrollIntoView does nothing. This will need further research.

Fixed Quote logic to actually receive a parent-id from NewMessageForm,
which removes the console message about the missing required property.

Tweaked scroll into view to focus on the top instead of center.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
---
 src/components/Quote.vue | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/components/Quote.vue')

diff --git a/src/components/Quote.vue b/src/components/Quote.vue
index 01cdecf76..d4f8abcfc 100644
--- a/src/components/Quote.vue
+++ b/src/components/Quote.vue
@@ -214,10 +214,7 @@ export default {
 		},
 
 		handleQuoteClick() {
-			// FIXME: unify quote attributes for the two use cases
-			// - "reply in message list" (this.parentId) and
-			// - "reply quote in new message" (this.id)
-			EventBus.$emit('focusMessage', this.parentId || this.id)
+			EventBus.$emit('focusMessage', this.parentId)
 		},
 	},
 }
-- 
cgit v1.2.3

