fix: remove occurence of ReplySelectedMessage twice (#102)

This commit is contained in:
Canis Li 2021-11-17 21:28:50 -08:00 • committed by GitHub
parent e8a2f33e07
commit c82acc2121
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
ui.go
View file

@ -203,7 +203,7 @@ func onMessagesViewInputCapture(e *tcell.EventKey) *tcell.EventKey {
messageInputField.SetTitle("Replying to " + m.Author.String())
app.SetFocus(messageInputField)
return nil
} else if util.HasKeybinding(conf.Keybindings.ReplySelectedMessage, e.Name()) {
} else if util.HasKeybinding(conf.Keybindings.MentionReplySelectedMessage, e.Name()) {
hs := messagesView.GetHighlights()
if len(hs) == 0 {
return nil