diff --git a/config/config.go b/config/config.go index 935b239..d5ba9b1 100644 --- a/config/config.go +++ b/config/config.go @@ -108,7 +108,7 @@ func getDefaultConfig() Config { ParLabelFg: "white", }, Channel: Channel{ - Prefix: "", + Prefix: "fg-red,fg-bold", Icon: "fg-green,fg-bold", Text: "fg-blue,fg-bold", }, diff --git a/handlers/event.go b/handlers/event.go index b64f0d1..b100639 100644 --- a/handlers/event.go +++ b/handlers/event.go @@ -357,7 +357,6 @@ func actionChangeChannel(ctx *context.AppContext) { // Set messages for the channel ctx.View.Chat.SetMessages(strMsgs) - // FIXME // Set channel name for the Chat pane ctx.View.Chat.SetBorderLabel( ctx.Service.Channels[ctx.View.Channels.SelectedChannel].GetChannelName(), diff --git a/service/slack.go b/service/slack.go index 56e6383..5424226 100644 --- a/service/slack.go +++ b/service/slack.go @@ -234,7 +234,7 @@ func (s *SlackService) MarkAsRead(channelID int) { channel := s.Channels[channelID] if channel.Notification { - channel.Notification = false + s.Channels[channelID].Notification = false switch channel.Type { case ChannelTypeChannel: