Fix MarkAsRead

This commit is contained in:
erroneousboat 2017-12-18 21:53:27 +01:00
parent 328200cd0b
commit e8cae33f17
3 changed files with 2 additions and 3 deletions

View File

@ -108,7 +108,7 @@ func getDefaultConfig() Config {
ParLabelFg: "white", ParLabelFg: "white",
}, },
Channel: Channel{ Channel: Channel{
Prefix: "", Prefix: "fg-red,fg-bold",
Icon: "fg-green,fg-bold", Icon: "fg-green,fg-bold",
Text: "fg-blue,fg-bold", Text: "fg-blue,fg-bold",
}, },

View File

@ -357,7 +357,6 @@ func actionChangeChannel(ctx *context.AppContext) {
// Set messages for the channel // Set messages for the channel
ctx.View.Chat.SetMessages(strMsgs) ctx.View.Chat.SetMessages(strMsgs)
// FIXME
// Set channel name for the Chat pane // Set channel name for the Chat pane
ctx.View.Chat.SetBorderLabel( ctx.View.Chat.SetBorderLabel(
ctx.Service.Channels[ctx.View.Channels.SelectedChannel].GetChannelName(), ctx.Service.Channels[ctx.View.Channels.SelectedChannel].GetChannelName(),

View File

@ -234,7 +234,7 @@ func (s *SlackService) MarkAsRead(channelID int) {
channel := s.Channels[channelID] channel := s.Channels[channelID]
if channel.Notification { if channel.Notification {
channel.Notification = false s.Channels[channelID].Notification = false
switch channel.Type { switch channel.Type {
case ChannelTypeChannel: case ChannelTypeChannel: