mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Use an explicit list of keys to share
This commit is contained in:
parent
810f07a846
commit
9e40e079ff
1 changed files with 5 additions and 1 deletions
|
@ -129,7 +129,11 @@ const onSecretRequested = async function({
|
|||
console.log(`CrossSigningManager: Ignoring request from untrusted device ${deviceId}`);
|
||||
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();
|
||||
if (!callbacks.getCrossSigningKeyCache) return;
|
||||
const keyId = name.replace("m.cross_signing.", "");
|
||||
|
|
Loading…
Reference in a new issue