forked from mystiq/hydrogen-web
don't log here yet as the logger isn't passed from createIdentity yet
This commit is contained in:
parent
7524a912c3
commit
9f9de0988e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue