1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

Fix secret sharing names to match spec

When sharing keys, we should use `m.cross_signing` prefix.

Part of https://github.com/vector-im/riot-web/issues/12661
This commit is contained in:
J. Ryan Stinnett
2020-03-09 13:40:02 +00:00
parent 074e02ccf2
commit b5eea01848

View File

@@ -216,7 +216,7 @@ export class VerificationBase extends EventEmitter {
console.debug("VerificationBase.done: requesting secret", console.debug("VerificationBase.done: requesting secret",
type, this.deviceId); type, this.deviceId);
const { promise } = const { promise } =
storage.request(`m.key.${type}`, [this.deviceId]); storage.request(`m.cross_signing.${type}`, [this.deviceId]);
const result = await promise; const result = await promise;
const decoded = decodeBase64(result); const decoded = decodeBase64(result);
return Uint8Array.from(decoded); return Uint8Array.from(decoded);