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
Add start wrapper in MatrixClientPeg
to handle the opts dictionary
This commit is contained in:
@@ -77,9 +77,7 @@ function startMatrixClient() {
|
|||||||
UserActivity.start();
|
UserActivity.start();
|
||||||
Presence.start();
|
Presence.start();
|
||||||
|
|
||||||
let opts = utils.deepCopy(MatrixClientPeg.opts);
|
MatrixClientPeg.start();
|
||||||
opts.pendingEventOrdering = "detached";
|
|
||||||
MatrixClientPeg.get().startClient(opts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _onLoggedOut() {
|
function _onLoggedOut() {
|
||||||
|
|||||||
@@ -88,6 +88,12 @@ class MatrixClientPeg {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
const opts = utils.deepCopy(MatrixClientPeg.opts);
|
||||||
|
opts.pendingEventOrdering = "detached";
|
||||||
|
this.get().startClient(opts);
|
||||||
|
},
|
||||||
|
|
||||||
_replaceClient(hs_url, is_url, user_id, access_token, isGuest) {
|
_replaceClient(hs_url, is_url, user_id, access_token, isGuest) {
|
||||||
if (localStorage) {
|
if (localStorage) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user