Fix Chat component border labels

This commit is contained in:
erroneousboat 2017-12-02 18:16:14 +01:00
parent 7ee7f3be93
commit b35f430679
2 changed files with 3 additions and 2 deletions

View File

@ -211,8 +211,8 @@ func (c *Chat) SetBorderLabel(channel service.Channel) {
var channelName string var channelName string
if channel.Topic != "" { if channel.Topic != "" {
channelName = fmt.Sprintf("%s - %s", channelName = fmt.Sprintf("%s - %s",
channel.Name, html.UnescapeString(channel.Name),
channel.Topic, html.UnescapeString(channel.Topic),
) )
} else { } else {
channelName = channel.Name channelName = channel.Name

View File

@ -36,6 +36,7 @@ func CreateView(svc *service.SlackService) *View {
chat.GetMaxItems(), chat.GetMaxItems(),
) )
chat.SetMessages(slackMsgs) chat.SetMessages(slackMsgs)
chat.SetBorderLabel(svc.Channels[channels.SelectedChannel])
// Debug: create the component // Debug: create the component
debug := components.CreateDebugComponent(input.Par.Height) debug := components.CreateDebugComponent(input.Par.Height)