Skip to content

Function: hasAnyGroupUnread() ​

hasAnyGroupUnread(groups, currentUserId?, activeGroupId?, isChatViewActive?): boolean

Defined in: src/utils/group-utils.ts:158

Checks if any of the given groups contain unread messages.

Parameters ​

groups ​

Group[]

currentUserId? ​

string | null

activeGroupId? ​

string | null

isChatViewActive? ​

boolean = false

Returns ​

boolean

Released under the MIT License.