Skip to content

Message seen not uniquely identify #35

@pradeepkumar24rk

Description

@pradeepkumar24rk

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
Image
{
"_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.Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions