diff --git a/src/matrix/e2ee/Account.js b/src/matrix/e2ee/Account.js index 98ca46ad..96990e3b 100644 --- a/src/matrix/e2ee/Account.js +++ b/src/matrix/e2ee/Account.js @@ -80,7 +80,7 @@ export class Account { return this._identityKeys; } - async uploadKeys(storage, log) { + async uploadKeys(storage) { const oneTimeKeys = JSON.parse(this._account.one_time_keys()); // only one algorithm supported by olm atm, so hardcode its name const oneTimeKeysEntries = Object.entries(oneTimeKeys.curve25519); @@ -93,9 +93,9 @@ export class Account { if (oneTimeKeysEntries.length) { payload.one_time_keys = this._oneTimeKeysPayload(oneTimeKeysEntries); } - const response = await this._hsApi.uploadKeys(payload, {log}).response(); + const response = await this._hsApi.uploadKeys(payload, /*{log}*/).response(); this._serverOTKCount = response?.one_time_key_counts?.signed_curve25519; - log.set("serverOTKCount", this._serverOTKCount); + // log.set("serverOTKCount", this._serverOTKCount); // TODO: should we not modify this in the txn like we do elsewhere? // we'd have to pickle and unpickle the account to clone it though ... // and the upload has succeed at this point, so in-memory would be correct