# Previous messages get cleared when a new message is sent/received for the first time for a user using SyncManager

**URL:** <https://community.sendbird.com/t/previous-messages-get-cleared-when-a-new-message-is-sent-received-for-the-first-time-for-a-user-using-syncmanager/2732>\
**Category:** Android\
**Tags:** chatsdk\
**Created:** [July 26, 2021, 7:40am UTC](https://community.sendbird.com/t/previous-messages-get-cleared-when-a-new-message-is-sent-received-for-the-first-time-for-a-user-using-syncmanager/2732 "2021-07-26T07:40:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terrel\_Lewis](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/terrel_lewis/32/1417_2.png) [@Terrel\_Lewis](https://community.sendbird.com/u/Terrel_Lewis)\
**Post date:** [July 26, 2021, 7:40am UTC](https://community.sendbird.com/t/previous-messages-get-cleared-when-a-new-message-is-sent-received-for-the-first-time-for-a-user-using-syncmanager/2732/1 "2021-07-26T07:40:31Z")

</div>

Usecase:

1. A group chat is opened and a few messages are sent
2. A new user joins the chat from his phone and is able to view the previous messages in the group
3. 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.
4. 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.

@Tyler

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [July 27, 2021, 2:03pm UTC](https://community.sendbird.com/t/previous-messages-get-cleared-when-a-new-message-is-sent-received-for-the-first-time-for-a-user-using-syncmanager/2732/2 "2021-07-27T14:03:57Z")

</div>

Closed on July 27, 2021, 2:03pm UTC



---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [July 27, 2021, 2:04pm UTC](https://community.sendbird.com/t/previous-messages-get-cleared-when-a-new-message-is-sent-received-for-the-first-time-for-a-user-using-syncmanager/2732/3 "2021-07-27T14:04:10Z")

</div>

Closing this out as we’re discussing this via a support case.
