You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
markAsSeen before update in database in sender have in messageList
{
"senderId": "6704ed7d43c7900df7e97ee0",
"receiverId": "65b9ddc3c1512617e0d0bc0e",
"isSeen": false,
"message": "test 20",
"createdAt": "2024-10-23T11:08:49.962Z"
}
in receiver side have
{
"_id": "6718d9418409919c69056649",
"senderId": "6704ed7d43c7900df7e97ee0",
"receiverId": "65b9ddc3c1512617e0d0bc0e",
"roomId": "65b9ddc3c1512617e0d0bc0e_6704ed7d43c7900df7e97ee0",
"message": "test 20",
"isSeen": false,
"createdAt": "2024-10-23T11:08:49.967Z",
"updatedAt": "2024-10-23T11:08:49.967Z",
"__v": 0
}
when the receiver seen the message it send the {
"_id": "6718d9418409919c69056649",
"senderId": "6704ed7d43c7900df7e97ee0",
"receiverId": "65b9ddc3c1512617e0d0bc0e",
"roomId": "65b9ddc3c1512617e0d0bc0e_6704ed7d43c7900df7e97ee0",
"message": "test 20",
"isSeen": false,
"createdAt": "2024-10-23T11:08:49.967Z",
"updatedAt": "2024-10-23T11:08:49.967Z",
"__v": 0
} this message to sender. Then how to sender messageList that message has seen.
The text was updated successfully, but these errors were encountered:
markAsSeen before update in database in sender have in messageList
{
"senderId": "6704ed7d43c7900df7e97ee0",
"receiverId": "65b9ddc3c1512617e0d0bc0e",
"isSeen": false,
"message": "test 20",
"createdAt": "2024-10-23T11:08:49.962Z"
}
in receiver side have
{
"_id": "6718d9418409919c69056649",
"senderId": "6704ed7d43c7900df7e97ee0",
"receiverId": "65b9ddc3c1512617e0d0bc0e",
"roomId": "65b9ddc3c1512617e0d0bc0e_6704ed7d43c7900df7e97ee0",
"message": "test 20",
"isSeen": false,
"createdAt": "2024-10-23T11:08:49.967Z",
"updatedAt": "2024-10-23T11:08:49.967Z",
"__v": 0
}
when the receiver seen the message it send the {
"_id": "6718d9418409919c69056649",
"senderId": "6704ed7d43c7900df7e97ee0",
"receiverId": "65b9ddc3c1512617e0d0bc0e",
"roomId": "65b9ddc3c1512617e0d0bc0e_6704ed7d43c7900df7e97ee0",
"message": "test 20",
"isSeen": false,
"createdAt": "2024-10-23T11:08:49.967Z",
"updatedAt": "2024-10-23T11:08:49.967Z",
"__v": 0
} this message to sender. Then how to sender messageList that message has seen.
The text was updated successfully, but these errors were encountered: