Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Local message cache #43

Closed
etown opened this issue Aug 27, 2018 · 2 comments
Closed

Local message cache #43

etown opened this issue Aug 27, 2018 · 2 comments

Comments

@etown
Copy link

etown commented Aug 27, 2018

Is there a local cache of messages on the iOS client? It seems like it is hinted at in the documentation, but can you elaborate on synchronization?

Specifically, my use case is creating a client like most consumer chat applications(WhatsApp, Messenger, etc)
The expectation is that when launching the app we can show the thread list with a snippet of the last message. Also, When going from the thread list into a thread view there should not be a async call needed to show the last page of messages(Although they may be out of sync depending on sync state).

Ideally, in the case of the app launch the client could return the channel list from the last successful sync which we could use while the new sync is underway. That way, we could provide the optimal experience of showing the last message state instantly and update it if needed after the synchronization is complete.

So my questions:

  1. Is there an accessible persistent message cache which can be used before sync is complete?
  2. If not, is there an internal one which means even if we have to block until synchronization is complete it will efficiently synchronize all channels and first page of messages?

Thank you!!

@Gray-Wind
Copy link
Contributor

We have offline support in our roadmap, but I cannot give you any estimate.

@Gray-Wind
Copy link
Contributor

I'm closing this ticked, will update #22 once we have offline support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants