mirror of
https://github.com/status-im/status-go.git
synced 2025-02-21 19:28:29 +00:00
fix(chat-api): fix unread count on channelGroup condition
This commit is contained in:
parent
4e3ba2941c
commit
e5093124f2
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user