fix(main): set messages TextView title as channel name
This commit is contained in:
parent
1902f5908d
commit
8d529e5f02
1 changed files with 1 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue