shouldIncrementUnreadCount

fun Message.shouldIncrementUnreadCount(currentUserId: String, lastMessageAtDate: Date?, isChannelMuted: Boolean): Boolean

Function that parses if the unread count should be increased or not.

Parameters

currentUserId

The id of the user that the unread count should be evaluated.

lastMessageAtDate

The Date of the last message the SDK is aware of. This is normally the ChannelUserRead.lastMessageSeenDate.

isChannelMuted

If the channel is muted for the current user or not.