fix(main): set messages TextView title as channel name

This commit is contained in:
rigormorrtiss 2021-08-07 18:42:24 +04:00
parent 1902f5908d
commit 8d529e5f02

View file

@ -225,13 +225,7 @@ func onChannelsTreeViewSelected(n *tview.TreeNode) {
n.SetExpanded(!n.IsExpanded())
}
case discord.GuildText, discord.GuildNews:
title := currentChannel.Name
if currentChannel.Topic != "" {
title += " - " + currentChannel.Topic
}
messagesTextView.SetTitle(title)
messagesTextView.SetTitle(currentChannel.Name)
app.SetFocus(messageInputField)
messages, _ := discordSession.Messages(currentChannel.ID, config.GetMessagesLimit)