8.7.0 (2023-05-17)
Feature
New api endpoint for unread count #1117
This endpoint is not enabled for every org, and if needed can be requested by getting in touch with support@getstream.io
On client side
const client = StreamChat.getInstance('key');
client._setToken({ id: 'vishal' }, 'my_token');
const response = await client.getUnreadCount();
Server side
const client = StreamChat.getInstance('key', 'secret');
const response = await client.getUnreadCount('vishal');