getTotalUnreadCount method
Implementation
@override
Future<int> getTotalUnreadCount() async {
final res = await TencentImSDKPlugin.v2TIMManager
.getConversationManager()
.getTotalUnreadMessageCount();
if (res.code == 0) {
return res.data ?? 0;
}
_coreService.callOnCallback(TIMCallback(
type: TIMCallbackType.API_ERROR,
errorMsg: res.desc,
errorCode: res.code));
return 0;
}