소스 검색

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

ayntgl 4 년 전
부모
커밋
7499e83492
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ui.go

+ 2 - 2
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
 	}