/ SDKs / JavaScript
SDKs
Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4

Retrieve number of channels with unread messages

Copy link

By using the getTotalUnreadChannelCount() method, you can retrieve the total number of group channels in which a user has one or more unread messages.

JavaScriptTypeScript
const count = await sb.groupChannel.getTotalUnreadChannelCount();