setChatLastSeen method

void setChatLastSeen(
  1. dynamic currentUserId,
  2. dynamic stCollection,
  3. dynamic chatId,
  4. bool isChat,
)

Implementation

void setChatLastSeen(
    var currentUserId, var stCollection, var chatId, bool isChat) async {
  //if (logInUser != null) {
  await FirebaseFirestore.instance.collection(stCollection).doc(chatId).set(
      {currentUserId: isChat ? true : DateTime.now().millisecondsSinceEpoch},
      SetOptions(merge: true));
  //}
}