When deleting a message using the MessageRepository.softDeleteMessage(messageId).then(close);
or
MessageRepository.deleteMessage(messageId).then(close);
function
The live collection doesn’t update the message
How I knew:
This is my MessageList component
Added a useEffect to check if the messages was updated or not
The thing is that messages is updated whenever I add a new message but when deleting a message messages is not updated.
Here is my network tab:
This shows that the delete message was OK
This show that the get message (The one triggered by MessageRepository.deleteMessage) was OK and the payload of the message shows that isDeleted is set to true
However the message is still visible in the chat and the useEffect is never triggered