From 0919e4146907ea8672d857f5d5a75e3ed8754ae8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 3 Aug 2016 16:45:23 +0100 Subject: [PATCH] Fix MatrixClientPeg.start() Move import & use `this` --- src/Lifecycle.js | 1 - src/MatrixClientPeg.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lifecycle.js b/src/Lifecycle.js index f6aead4786..7c507c2c50 100644 --- a/src/Lifecycle.js +++ b/src/Lifecycle.js @@ -19,7 +19,6 @@ import Notifier from './Notifier' import UserActivity from './UserActivity'; import Presence from './Presence'; import dis from './dispatcher'; -import utils from 'matrix-js-sdk/lib/utils'; /** * Transitions to a logged-in state using the given credentials diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index 63032fb0bd..3599c55f13 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -17,6 +17,7 @@ limitations under the License. 'use strict'; import Matrix from 'matrix-js-sdk'; +import utils from 'matrix-js-sdk/lib/utils'; const localStorage = window.localStorage; @@ -89,7 +90,7 @@ class MatrixClientPeg { } start() { - const opts = utils.deepCopy(MatrixClientPeg.opts); + const opts = utils.deepCopy(this.opts); opts.pendingEventOrdering = "detached"; this.get().startClient(opts); }