Cancel reply when pressing keybind on same event

This commit is contained in:
miruka 2020-10-01 20:12:55 -04:00
parent 12cfbd2a96
commit 1feda8667f

View File

@ -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