mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 00:11:43 +02:00
[WIP] Send lazy_load_memberers filter when syncing
This commit is contained in:
parent
a00c2b753a
commit
a11e1cc2f9
@ -34,6 +34,14 @@ interface MatrixClientCreds {
|
||||
guest: boolean,
|
||||
}
|
||||
|
||||
const FILTER_CONTENT = {
|
||||
room: {
|
||||
state: {
|
||||
lazy_load_members: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Wrapper object for handling the js-sdk Matrix Client object in the react-sdk
|
||||
* Handles the creation/initialisation of client objects.
|
||||
@ -99,6 +107,8 @@ class MatrixClientPeg {
|
||||
// the react sdk doesn't work without this, so don't allow
|
||||
opts.pendingEventOrdering = "detached";
|
||||
|
||||
opts.filter = await this.matrixClient.createFilter(FILTER_CONTENT);
|
||||
|
||||
try {
|
||||
const promise = this.matrixClient.store.startup();
|
||||
console.log(`MatrixClientPeg: waiting for MatrixClient store to initialise`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user