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
pull/21833/head
J. Ryan Stinnett 2020-03-09 13:35:59 +00:00
parent 49fe1887df
commit 47b1552ccc
1 changed files with 2 additions and 2 deletions

View File

@ -144,10 +144,10 @@ const onSecretRequested = async function({
}
const callbacks = client.getCrossSigningCacheCallbacks();
if (!callbacks.getCrossSigningKeyCache) return;
if (name === "m.key.self_signing") {
if (name === "m.cross_signing.self_signing") {
const key = await callbacks.getCrossSigningKeyCache("self_signing");
return key && encodeBase64(key);
} else if (name === "m.key.user_signing") {
} else if (name === "m.cross_signing.user_signing") {
const key = await callbacks.getCrossSigningKeyCache("user_signing");
return key && encodeBase64(key);
}