- A group chat is opened and a few messages are sent
- A new user joins the chat from his phone and is able to view the previous messages in the group
- If the new user sends or receives a new message, the previous messages get cleared due to the CLEAR event being triggered and an INSERT event is fired with just the latest message. The previous messages are not inserted.
- Reloading the chat group fetches all messages again and then this issue does not repeat. It’s only for the first message that is sent/received.