diff --git a/services/chat/api.go b/services/chat/api.go index f0f5be54e..2795060f5 100644 --- a/services/chat/api.go +++ b/services/chat/api.go @@ -146,10 +146,9 @@ func (api *API) GetChannelGroups(ctx context.Context) (map[string]ChannelGroup, totalUnviewedMentionsCount := 0 for _, chat := range channels { - if !chat.IsActivePersonalChat() { + if !chat.Active { continue } - totalUnviewedMessageCount += int(chat.UnviewedMessagesCount) totalUnviewedMentionsCount += int(chat.UnviewedMentionsCount) }