|
@@ -210,7 +210,12 @@ func onGuildsTreeViewSelected(n *tview.TreeNode) {
|
|
|
currentChannel = r
|
|
currentChannel = r
|
|
|
app.SetFocus(messageInputField)
|
|
app.SetFocus(messageInputField)
|
|
|
messagesTextView.Clear()
|
|
messagesTextView.Clear()
|
|
|
- messagesTextView.SetTitle(r.Name)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ title := "#" + r.Name
|
|
|
|
|
+ if r.Topic != "" {
|
|
|
|
|
+ title += " - " + r.Topic
|
|
|
|
|
+ }
|
|
|
|
|
+ messagesTextView.SetTitle(title)
|
|
|
|
|
|
|
|
for _, t := range currentGuild.Threads {
|
|
for _, t := range currentGuild.Threads {
|
|
|
if t.ParentID == currentChannel.ID {
|
|
if t.ParentID == currentChannel.ID {
|