From b35f430679be028b6f7194145cd67252f3e69538 Mon Sep 17 00:00:00 2001 From: erroneousboat Date: Sat, 2 Dec 2017 18:16:14 +0100 Subject: [PATCH] Fix Chat component border labels --- components/chat.go | 4 ++-- views/view.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/chat.go b/components/chat.go index 3b2f49d..5155487 100644 --- a/components/chat.go +++ b/components/chat.go @@ -211,8 +211,8 @@ func (c *Chat) SetBorderLabel(channel service.Channel) { var channelName string if channel.Topic != "" { channelName = fmt.Sprintf("%s - %s", - channel.Name, - channel.Topic, + html.UnescapeString(channel.Name), + html.UnescapeString(channel.Topic), ) } else { channelName = channel.Name diff --git a/views/view.go b/views/view.go index cdf81e5..ed488e9 100644 --- a/views/view.go +++ b/views/view.go @@ -36,6 +36,7 @@ func CreateView(svc *service.SlackService) *View { chat.GetMaxItems(), ) chat.SetMessages(slackMsgs) + chat.SetBorderLabel(svc.Channels[channels.SelectedChannel]) // Debug: create the component debug := components.CreateDebugComponent(input.Par.Height)