Fix unread error (#5390)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0a21eed004
Коммит
67dd6c1ec6
@@ -858,7 +858,7 @@ func ViewChannel(view *model.ChannelView, teamId string, userId string, clearPus
|
|||||||
if len(view.PrevChannelId) > 0 {
|
if len(view.PrevChannelId) > 0 {
|
||||||
channelIds = append(channelIds, view.PrevChannelId)
|
channelIds = append(channelIds, view.PrevChannelId)
|
||||||
|
|
||||||
if *utils.Cfg.EmailSettings.SendPushNotifications && clearPushNotifications {
|
if *utils.Cfg.EmailSettings.SendPushNotifications && clearPushNotifications && len(view.ChannelId) > 0 {
|
||||||
pchan = Srv.Store.User().GetUnreadCountForChannel(userId, view.ChannelId)
|
pchan = Srv.Store.User().GetUnreadCountForChannel(userId, view.ChannelId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user