From 9f9de0988e4aea6ba4d9f40fe575a265d185e3b1 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Feb 2021 19:41:30 +0100 Subject: [PATCH] don't log here yet as the logger isn't passed from createIdentity yet --- src/matrix/e2ee/Account.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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