From 47b1552ccc502ac4da4027a806b43af82879fb83 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 9 Mar 2020 13:35:59 +0000 Subject: [PATCH] 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 --- src/CrossSigningManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CrossSigningManager.js b/src/CrossSigningManager.js index 0cf2c9e2ac..2184eaf347 100644 --- a/src/CrossSigningManager.js +++ b/src/CrossSigningManager.js @@ -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); }