can't rename named params like this

This commit is contained in:
Bruno Windels 2020-09-22 15:49:43 +02:00
parent 5660e0f4f0
commit 85b451ffa1

View file

@ -42,10 +42,10 @@ const PICKLE_KEY = "DEFAULT_KEY";
export class Session { export class Session {
// sessionInfo contains deviceId, userId and homeServer // 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._clock = clock;
this._storage = storage; this._storage = storage;
this._requestScheduler = new RequestScheduler({hsApi: unwrappedHsApi, clock}); this._requestScheduler = new RequestScheduler({hsApi, clock});
this._hsApi = this._requestScheduler.createHomeServerApiWrapper(); this._hsApi = this._requestScheduler.createHomeServerApiWrapper();
this._mediaRepository = mediaRepository; this._mediaRepository = mediaRepository;
this._syncInfo = null; this._syncInfo = null;