Private
Optional
clientPrivate
filtersProtected
Optional
Readonly
localPrivate
nextPrivate
oobPrivate
pendingPrivate
pendingPrivate
roomsPrivate
syncPrivate
usersGet account data event by event type
the user account_data event of given type, if any
The event type being queried
Fetches the oldest batch of to-device messages in the queue
Returns the out-of-band membership events for this room that were previously loaded.
the events, potentially an empty array if OOB loading didn't yield any new members
in case the members for this room haven't been stored yet
Retrieve a summary of all the rooms.
A summary of each room.
Resolves with a sync response to restore the client state to where it was at the last save, or null if there is no saved sync data.
Private
onCalled when a room member in a room being tracked by this store has been updated.
Stores batches of outgoing to-device messages
Retrieve scrollback for this room.
An array of objects which will be at most 'limit' length and at least 0. The objects are the raw event JSON.
The matrix room
The max number of old events to retrieve.
Stores the out-of-band membership events for this room. Note that it still makes sense to store an empty array as the OOB status for the room is marked as fetched, and getOutOfBandMembers will return an empty array instead of null
when all members have been stored
the membership events to store
setSyncData does nothing as there is no backing data store.
An immediately resolved promise.
The sync data
Store user-scoped account data events. N.B. that account data only allows a single event per type, so multiple events with the same type will replace each other.
The events to store.
Store events for a room. The events have already been added to the timeline
The room to store events for.
The events to store.
The token associated with these events.
True if these are paginated results.
Generated using TypeDoc
Construct a new in-memory data store for the Matrix Client.
Param
Config options
Param
The local storage instance to persist some forms of data such as tokens. Rooms will NOT be stored.