Open
Description
Hi,
We are currently using matrix js sdk in our react native app. As indexeddb is not supported in RN we currently use the memory store.
The problem is that when you open a notification from a room there is a loading state because nothin is stored on device. We are using TimelineWindow for our rooms with pagination etc https://matrix-org.github.io/matrix-js-sdk/classes/matrix.TimelineWindow.html.
So I have 2 questions:
-
- What would some kind of solution be to store the 40 recent events of a room, and load it in the TimelineWindow?
-
- as (1) would be quick workaround I am considering contributing to the sdk to implement a SQLite store implantation. Would this mean to just implement the IStore in https://github.com/matrix-org/matrix-js-sdk/blob/develop/src/store/index.ts methods to a SQLite implantation?
Thanks