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