feat(ui): display user string representation in box title when replying (#79)

This commit is contained in:
ayntgl 2021-10-24 22:30:11 +04:00 • committed by GitHub
parent 1a6ce2e42f
commit 7499e83492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
ui.go
View file

@ -184,7 +184,7 @@ func onMessagesViewInputCapture(e *tcell.EventKey) *tcell.EventKey {
}
m := findByMessageID(hs[0])
messageInputField.SetTitle("Replying to " + m.Author.Username)
messageInputField.SetTitle("Replying to " + m.Author.String())
app.SetFocus(messageInputField)
return nil
case conf.Keybindings.MentionReplySelectedMessage:
@ -194,7 +194,7 @@ func onMessagesViewInputCapture(e *tcell.EventKey) *tcell.EventKey {
}
m := findByMessageID(hs[0])
messageInputField.SetTitle("[@] Replying to " + m.Author.Username)
messageInputField.SetTitle("[@] Replying to " + m.Author.String())
app.SetFocus(messageInputField)
return nil
}