From 3c2a274b198bd95ec33c1027438489c8612ba9f6 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 13 Nov 2020 11:25:58 +0100 Subject: Fix click quote in new message form When clicking the quote in the new message form, the original message is not properly focussed. The issue was that the Quote component is used in two separate scenarios and has inconsistent attributes (added FIXME to refactor that later). Signed-off-by: Vincent Petry --- src/components/Quote.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/Quote.vue b/src/components/Quote.vue index d4f8abcfc..01cdecf76 100644 --- a/src/components/Quote.vue +++ b/src/components/Quote.vue @@ -214,7 +214,10 @@ export default { }, handleQuoteClick() { - EventBus.$emit('focusMessage', this.parentId) + // 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) }, }, } -- cgit v1.2.3