option related to total message un read count from all channels in ts SDK
Hi @harshit there isn’t a method on api/sdk that can fetch unread count from all channels, you will have to fetch unread count from each channel and put them all together.
how can I access unread count channel-wise in react native TS SDK?
Hi @harshit , you can add this code when you query channel
for await (const channel of channels.results) {
totalUnreadCount += channel.channel.messageCount - channel.channelUser.readToSegment
}