# If you send or receive a new message for the first time for a user using SyncManager, the old message will be erased. I want to know the solution

**URL:** <https://community.sendbird.com/t/if-you-send-or-receive-a-new-message-for-the-first-time-for-a-user-using-syncmanager-the-old-message-will-be-erased-i-want-to-know-the-solution/4060>\
**Category:** Android\
**Tags:** group-channel, chatsdk\
**Created:** [March 2, 2022, 4:48pm UTC](https://community.sendbird.com/t/if-you-send-or-receive-a-new-message-for-the-first-time-for-a-user-using-syncmanager-the-old-message-will-be-erased-i-want-to-know-the-solution/4060 "2022-03-02T16:48:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![haildev.help](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/haildev.help/32/2127_2.png) [@haildev.help](https://community.sendbird.com/u/haildev.help)\
**Post date:** [March 2, 2022, 4:48pm UTC](https://community.sendbird.com/t/if-you-send-or-receive-a-new-message-for-the-first-time-for-a-user-using-syncmanager-the-old-message-will-be-erased-i-want-to-know-the-solution/4060/1 "2022-03-02T16:48:58Z")

</div>

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.

Previously, I faced the same problem as an issue. Can I know the solution to this problem?

@Tyler @Brian_Sang

---

<div class="post-metadata">

**Author:** ![Yongjun\_Choi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yongjun_choi/32/36_2.png) [@Yongjun\_Choi](https://community.sendbird.com/u/Yongjun_Choi)\
**Post date:** [March 3, 2022, 2:32am UTC](https://community.sendbird.com/t/if-you-send-or-receive-a-new-message-for-the-first-time-for-a-user-using-syncmanager-the-old-message-will-be-erased-i-want-to-know-the-solution/4060/2 "2022-03-03T02:32:27Z")

</div>

We are proposing a migration to local caching for the chronic resolution and smooth support of Syncmanager. Can you please refer to the migration guide and update it?

> **[Local caching | SyncManager Android SDK | Sendbird Docs](https://sendbird.com/docs/syncmanager/v1/android/migration/local-caching#1-local-caching)**
>
> Learn how to migrate from SyncManager to Chat SDK with Local caching

---

<div class="post-metadata">

**Author:** ![haildev.help](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/haildev.help/32/2127_2.png) [@haildev.help](https://community.sendbird.com/u/haildev.help)\
**Post date:** [March 3, 2022, 5:30am UTC](https://community.sendbird.com/t/if-you-send-or-receive-a-new-message-for-the-first-time-for-a-user-using-syncmanager-the-old-message-will-be-erased-i-want-to-know-the-solution/4060/3 "2022-03-03T05:30:29Z")

</div>

Thank you for your answer!  
Is this problem not solved yet??

---

<div class="post-metadata">

**Author:** ![Yongjun\_Choi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yongjun_choi/32/36_2.png) [@Yongjun\_Choi](https://community.sendbird.com/u/Yongjun_Choi)\
**Post date:** [March 4, 2022, 1:44am UTC](https://community.sendbird.com/t/if-you-send-or-receive-a-new-message-for-the-first-time-for-a-user-using-syncmanager-the-old-message-will-be-erased-i-want-to-know-the-solution/4060/5 "2022-03-04T01:44:23Z")

</div>

Hi haildev.help  
Syncmanager’s potential issues are diverse, it difficult to solve all problems.  
(That’s why it’s been deprecated.)  
It would be nice to use local caching. 🙏
