# Chat history not working

**URL:** <https://community.sendbird.com/t/chat-history-not-working/7768>\
**Category:** Android\
**Tags:** group-channel, chatsdk\
**Created:** [July 5, 2023, 9:56am UTC](https://community.sendbird.com/t/chat-history-not-working/7768 "2023-07-05T09:56:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tsah\_Weiss1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tsah_weiss1/32/1876_2.png) [@Tsah\_Weiss1](https://community.sendbird.com/u/Tsah_Weiss1)\
**Post date:** [July 5, 2023, 9:56am UTC](https://community.sendbird.com/t/chat-history-not-working/7768/1 "2023-07-05T09:56:37Z")

</div>

**[Problem/Question]**  
Hello,  
I enabled chat history in the sendbird dashboard, but still I don’t see history in chats.  
What am I missing? is there anything I need to do with chat SDK?

* * *

// If problem, please fill out the below. If question, please delete.  
**[UIKit Version]**  
SDK version 3.6.0

**[Reproduction Steps]**  
Enable chat history, join a private group channel, get some new messages, leave channel, join again, the channel now has no messages.

**[Frequency]**  
Every time

**[Current impact]**  
Blocker for feature development

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [July 6, 2023, 6:58am UTC](https://community.sendbird.com/t/chat-history-not-working/7768/2 "2023-07-06T06:58:49Z")

</div>

Hello @Tsah_Weiss1

Welcome to Sendbird community!

Can you check the message retention hours? The chat history may not be visible if the messages have exceeded the retention period.

Reference: [Update global application settings | Chat Platform API | Sendbird Docs](https://sendbird.com/docs/chat/v3/platform-api/application/setting-up-an-application/update-global-application-settings#1-update-global-application-settings)

---

<div class="post-metadata">

**Author:** ![Tsah\_Weiss1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tsah_weiss1/32/1876_2.png) [@Tsah\_Weiss1](https://community.sendbird.com/u/Tsah_Weiss1)\
**Post date:** [July 6, 2023, 9:26am UTC](https://community.sendbird.com/t/chat-history-not-working/7768/3 "2023-07-06T09:26:02Z")

</div>

We did not change message retention period.

After further investigation, it seems that the history is received, but then all the messages get deleted.

Visually it looks like the messages appear for a fraction of a second and then disappear.

What could cause this?

---

<div class="post-metadata">

**Author:** ![Vladislav\_Karpman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/vladislav_karpman/32/1860_2.png) [@Vladislav\_Karpman](https://community.sendbird.com/u/Vladislav_Karpman)\
**Post date:** [July 6, 2023, 9:59am UTC](https://community.sendbird.com/t/chat-history-not-working/7768/4 "2023-07-06T09:59:17Z")

</div>

More precisely we’re receiving a notification in MessageCollectionHandler.onMessagesDeleted()  
that all messages are deleted.

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [July 17, 2023, 5:43am UTC](https://community.sendbird.com/t/chat-history-not-working/7768/5 "2023-07-17T05:43:42Z")

</div>

Hello,

Looks like there was some issues with the cache. This should be fixed by this Wednesday 19th July’23.
