From 7b0a824f5b8fb2c6f12d196eea6d9e45f0a230e8 Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Mon, 16 Aug 2021 22:48:45 +0400 Subject: [PATCH] feat(main): suffix text channel topic to TextView title (#27) --- discordo.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/discordo.go b/discordo.go index 052e54b..e760504 100644 --- a/discordo.go +++ b/discordo.go @@ -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 {