Don't let pendingEventOrdering be changed
This commit is contained in:
parent
77a5384bf8
commit
40834d188e
2 changed files with 5 additions and 1 deletions
|
@ -79,6 +79,11 @@ function startMatrixClient() {
|
||||||
Notifier.start();
|
Notifier.start();
|
||||||
UserActivity.start();
|
UserActivity.start();
|
||||||
Presence.start();
|
Presence.start();
|
||||||
|
|
||||||
|
// the react sdk doesn't work without this, so don't allow
|
||||||
|
// it to be overridden (and modify the global object so at
|
||||||
|
// at least the app can see we've changed it)
|
||||||
|
MatrixClientPeg.opts.pendingEventOrdering = "detached";
|
||||||
MatrixClientPeg.get().startClient(MatrixClientPeg.opts);
|
MatrixClientPeg.get().startClient(MatrixClientPeg.opts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ class MatrixClientPeg {
|
||||||
// starts the client. These can be altered when the
|
// starts the client. These can be altered when the
|
||||||
// 'will_start_client' event is dispatched.
|
// 'will_start_client' event is dispatched.
|
||||||
this.opts = {
|
this.opts = {
|
||||||
pendingEventOrdering: "detached",
|
|
||||||
initialSyncLimit: 20,
|
initialSyncLimit: 20,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue