Use an explicit list of keys to share
parent
810f07a846
commit
9e40e079ff
|
@ -129,7 +129,11 @@ const onSecretRequested = async function({
|
||||||
console.log(`CrossSigningManager: Ignoring request from untrusted device ${deviceId}`);
|
console.log(`CrossSigningManager: Ignoring request from untrusted device ${deviceId}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (name.startsWith("m.cross_signing")) {
|
if (
|
||||||
|
name === "m.cross_signing.master" ||
|
||||||
|
name === "m.cross_signing.self_signing" ||
|
||||||
|
name === "m.cross_signing.user_signing"
|
||||||
|
) {
|
||||||
const callbacks = client.getCrossSigningCacheCallbacks();
|
const callbacks = client.getCrossSigningCacheCallbacks();
|
||||||
if (!callbacks.getCrossSigningKeyCache) return;
|
if (!callbacks.getCrossSigningKeyCache) return;
|
||||||
const keyId = name.replace("m.cross_signing.", "");
|
const keyId = name.replace("m.cross_signing.", "");
|
||||||
|
|
Loading…
Reference in New Issue