You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +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:
@@ -144,10 +144,10 @@ const onSecretRequested = async function({
|
|||||||
}
|
}
|
||||||
const callbacks = client.getCrossSigningCacheCallbacks();
|
const callbacks = client.getCrossSigningCacheCallbacks();
|
||||||
if (!callbacks.getCrossSigningKeyCache) return;
|
if (!callbacks.getCrossSigningKeyCache) return;
|
||||||
if (name === "m.key.self_signing") {
|
if (name === "m.cross_signing.self_signing") {
|
||||||
const key = await callbacks.getCrossSigningKeyCache("self_signing");
|
const key = await callbacks.getCrossSigningKeyCache("self_signing");
|
||||||
return key && encodeBase64(key);
|
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");
|
const key = await callbacks.getCrossSigningKeyCache("user_signing");
|
||||||
return key && encodeBase64(key);
|
return key && encodeBase64(key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user