Fix Chat component border labels
This commit is contained in:
parent
7ee7f3be93
commit
b35f430679
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user