Add start wrapper in MatrixClientPeg

to handle the opts dictionary
This commit is contained in:
David Baker 2016-08-03 16:39:47 +01:00
parent b95a1c4a4b
commit 9bf45fb556
2 changed files with 7 additions and 3 deletions

View file

@ -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) {
if (localStorage) {
try {