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
|
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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user