Don't let pendingEventOrdering be changed

This commit is contained in:
David Baker 2016-08-02 18:58:18 +01:00
parent 77a5384bf8
commit 40834d188e
2 changed files with 5 additions and 1 deletions

View file

@ -79,6 +79,11 @@ function startMatrixClient() {
Notifier.start();
UserActivity.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);
}

View file

@ -45,7 +45,6 @@ class MatrixClientPeg {
// starts the client. These can be altered when the
// 'will_start_client' event is dispatched.
this.opts = {
pendingEventOrdering: "detached",
initialSyncLimit: 20,
};
}