From 7499e834923f125e9b7cbfe9990e55ca7f850d26 Mon Sep 17 00:00:00 2001 From: ayntgl <90600421+ayntgl@users.noreply.github.com> Date: Sun, 24 Oct 2021 22:30:11 +0400 Subject: [PATCH] feat(ui): display user string representation in box title when replying (#79) --- ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui.go b/ui.go index 9da5b76..9c7e805 100644 --- a/ui.go +++ b/ui.go @@ -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 }