Skip to content

Support SQLite implementation for IStore #4570

Open
@theobouwman

Description

@theobouwman

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:

    1. What would some kind of solution be to store the 40 recent events of a room, and load it in the TimelineWindow?
    1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-OtherQuestions, user support, anything else

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions