getUnreadChatCount method

Stream<QuerySnapshot<Object?>> getUnreadChatCount()

Implementation

Stream<QuerySnapshot> getUnreadChatCount() {
  /// TODO IMP 1:
  /// Ye function Update Karna hai
  return chatCollectionReference
      .where('users', arrayContains: currentUserId)
      .where('unreadCount_$currentUserId', isGreaterThan: 0)
      .snapshots();
}