From 1feda8667fdc2234f477c0cbddd24c795820b588 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 1 Oct 2020 20:12:55 -0400 Subject: [PATCH] Cancel reply when pressing keybind on same event --- src/gui/Pages/Chat/Timeline/EventList.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/Pages/Chat/Timeline/EventList.qml b/src/gui/Pages/Chat/Timeline/EventList.qml index 4e7cfc1f..6ba16dab 100644 --- a/src/gui/Pages/Chat/Timeline/EventList.qml +++ b/src/gui/Pages/Chat/Timeline/EventList.qml @@ -117,6 +117,11 @@ Rectangle { if (! event) return + if (event.id === chat.replyToEventId) { + chat.clearReplyTo() + return + } + chat.replyToEventId = event.id chat.replyToUserId = event.sender_id chat.replyToDisplayName = event.sender_name