Fix MarkAsRead
This commit is contained in:
parent
328200cd0b
commit
e8cae33f17
@ -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",
|
||||
},
|
||||
|
@ -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(),
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user