mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 21:27:40 -05:00
Fix blank unread count query (#5457)
This commit is contained in:
committed by
Corey Hulen
parent
9eef4fc36a
commit
4aa576fc02
+1
-1
@@ -1297,7 +1297,7 @@ func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
if len(view.PrevChannelId) > 0 {
|
||||
channelIds = append(channelIds, view.PrevChannelId)
|
||||
|
||||
if *utils.Cfg.EmailSettings.SendPushNotifications && !c.Session.IsMobileApp() {
|
||||
if *utils.Cfg.EmailSettings.SendPushNotifications && !c.Session.IsMobileApp() && len(view.ChannelId) > 0 {
|
||||
pchan = Srv.Store.User().GetUnreadCountForChannel(c.Session.UserId, view.ChannelId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user