How to retrieve total unread count

is there a way to retrieve total unread messages from the client SDK

Hello Martin, we only support total unread message count for the loaded channels.
Saying that if the user has 100 channels, but the pagination only loads 30 channels in the first page, the total unread count will be calculated from that 30 channels only. If the user needs to know the actual total unread count, the user will need to scroll until all pages are loaded.

The function to get the unread count is :

  AmityChatClient.newChannelRepository()
            .getTotalUnreadCount()
            .subscribe { updateView() }
1 Like