1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Hashes need tokens too

This commit is contained in:
Travis Ralston
2019-08-21 14:30:16 -06:00
parent ba78d1a9ae
commit 3d5a79be3b

View File

@@ -1891,7 +1891,7 @@ MatrixBaseApis.prototype.identityHashedLookup = async function(
};
// Get hash information first before trying to do a lookup
const hashes = await this.getIdentityHashDetails();
const hashes = await this.getIdentityHashDetails(identityAccessToken);
if (!hashes || !hashes['lookup_pepper'] || !hashes['algorithms']) {
throw new Error("Unsupported identity server: bad response");
}