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
Copy opts to set pendingEventOrdering
This commit is contained in:
@@ -19,6 +19,7 @@ import Notifier from './Notifier'
|
|||||||
import UserActivity from './UserActivity';
|
import UserActivity from './UserActivity';
|
||||||
import Presence from './Presence';
|
import Presence from './Presence';
|
||||||
import dis from './dispatcher';
|
import dis from './dispatcher';
|
||||||
|
import utils from 'matrix-js-sdk/lib/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transitions to a logged-in state using the given credentials
|
* Transitions to a logged-in state using the given credentials
|
||||||
@@ -80,11 +81,9 @@ function startMatrixClient() {
|
|||||||
UserActivity.start();
|
UserActivity.start();
|
||||||
Presence.start();
|
Presence.start();
|
||||||
|
|
||||||
// the react sdk doesn't work without this, so don't allow
|
let opts = utils.deepCopy(MatrixClientPeg.opts);
|
||||||
// it to be overridden (and modify the global object so at
|
opts.pendingEventOrdering = "detached";
|
||||||
// at least the app can see we've changed it)
|
MatrixClientPeg.get().startClient(opts);
|
||||||
MatrixClientPeg.opts.pendingEventOrdering = "detached";
|
|
||||||
MatrixClientPeg.get().startClient(MatrixClientPeg.opts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _onLoggedOut() {
|
function _onLoggedOut() {
|
||||||
|
|||||||
Reference in New Issue
Block a user