log OTK claim failures
This commit is contained in:
parent
da4b710e49
commit
0ed2d14887
1 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,9 @@ export class Encryption {
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
one_time_keys: oneTimeKeys
|
one_time_keys: oneTimeKeys
|
||||||
}).response();
|
}).response();
|
||||||
|
if (Object.keys(claimResponse.failures).length) {
|
||||||
|
console.warn("failures for claiming one time keys", oneTimeKeys, claimResponse.failures);
|
||||||
|
}
|
||||||
// TODO: log claimResponse.failures
|
// TODO: log claimResponse.failures
|
||||||
const userKeyMap = claimResponse?.["one_time_keys"];
|
const userKeyMap = claimResponse?.["one_time_keys"];
|
||||||
return this._verifyAndCreateOTKTargets(userKeyMap, devicesByUser);
|
return this._verifyAndCreateOTKTargets(userKeyMap, devicesByUser);
|
||||||
|
|
Reference in a new issue