feat(main): suffix text channel topic to TextView title (#27)
This commit is contained in:
parent
d0fb493eb9
commit
7b0a824f5b
1 changed files with 6 additions and 1 deletions
|
|
@ -210,7 +210,12 @@ func onGuildsTreeViewSelected(n *tview.TreeNode) {
|
|||
currentChannel = r
|
||||
app.SetFocus(messageInputField)
|
||||
messagesTextView.Clear()
|
||||
messagesTextView.SetTitle(r.Name)
|
||||
|
||||
title := "#" + r.Name
|
||||
if r.Topic != "" {
|
||||
title += " - " + r.Topic
|
||||
}
|
||||
messagesTextView.SetTitle(title)
|
||||
|
||||
for _, t := range currentGuild.Threads {
|
||||
if t.ParentID == currentChannel.ID {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue