setApplicationUnreadCount method

void setApplicationUnreadCount(
  1. List<V2TimFriendApplication>? applicationList
)

Implementation

void setApplicationUnreadCount(List<V2TimFriendApplication>? applicationList) {
  List<V2TimFriendApplication> filteredList = [];
  if (applicationList != null && applicationList.length > 0) {
    filteredList = applicationList.where((e) => e.type == 1).toList();
  }
  _applicationUnreadCount = filteredList.length;
  notifyListener(TencentCloudChatContactDataKeys.applicationCount as T);
}