Save and restore event cache to/from persistent storage
kevinaboos opened this issue · 1 comments
kevinaboos commented
Now that a user's login session is properly persisted to/from storage on all platforms, the next step is to:
- Serialize the actual set of all timeline events (as a list of
SyncTimelineEvent
s) upon app exit, or perhaps upon another lifecycle stage. - Deserialize them and repopulate the event cache before synchronizing any timelines, using the
EventCache::add_initial_events()
- We just removed an erroneous invocation of this function in fde5d29
kevinaboos commented
This is blocked on the Matrix Rust SDK, which currently doesn't fully implement EventCache features that allow the client to customize how events are extracted from and imported into the cache.