getTotalUnreadCount method
dynamic
getTotalUnreadCount()
Implementation
getTotalUnreadCount() async {
V2TimValueCallback<int> totalRes =
await TencentCloudChat.instance.chatSDKInstance.manager.getConversationManager().getTotalUnreadMessageCount();
if (totalRes.code == 0) {
if (totalRes.data != null) {
TencentCloudChat.instance.dataInstance.conversation.setTotalUnreadCount(totalRes.data!);
}
}
}