Rutvik Gumasana
Rutvik Gumasana

Reputation: 1630

How to cache the unread message using stream_chat_persistence in Flutter?

I am building a chat application using the stream_chat Flutter package for chat functionalities and stream_chat_persistence for local data storage.

The local caching is working fine for most cases, but I noticed that when a user has unread messages and then goes offline (turns off the internet), the app does not display the unread messages or even some of the previously received messages.

My Goal

I want to ensure that all messages (read or unread) are cached locally and persist even when the user is offline. I need the app to reliably display all previously received messages regardless of their read status.

Upvotes: 0

Views: 34

Answers (0)

Related Questions