fix(chat-api): fix unread count on channelGroup condition

This commit is contained in:
Jonathan Rainville 2023-04-12 14:36:56 -04:00
parent 4e3ba2941c
commit e5093124f2
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}