You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Don't let pendingEventOrdering be changed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user