From 85b451ffa14ec2fd5713acb0db461572f70e419c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 22 Sep 2020 15:49:43 +0200 Subject: [PATCH] can't rename named params like this --- src/matrix/Session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index fdc9a83f..db9f6933 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -42,10 +42,10 @@ const PICKLE_KEY = "DEFAULT_KEY"; export class Session { // sessionInfo contains deviceId, userId and homeServer - constructor({clock, storage, unwrappedHsApi, sessionInfo, olm, olmWorker, cryptoDriver, mediaRepository}) { + constructor({clock, storage, hsApi, sessionInfo, olm, olmWorker, cryptoDriver, mediaRepository}) { this._clock = clock; this._storage = storage; - this._requestScheduler = new RequestScheduler({hsApi: unwrappedHsApi, clock}); + this._requestScheduler = new RequestScheduler({hsApi, clock}); this._hsApi = this._requestScheduler.createHomeServerApiWrapper(); this._mediaRepository = mediaRepository; this._syncInfo = null;