Message Counts
Retrieve unread message counts
If you store the timestamp of the last message that a user read, you can use the messageCounts
method to fetch how many messages have been sent since that last message for a given channel.
.messageCounts(channelTimestampPairs: array)
.messageCounts(channelTimestampPairs: array)
Name | Type | Required | Description |
channelTimestampPairs | array | yes | The method takes an array of objects that each must specify the keys |
Last updated