From ad16f34b265fdca9ca97de88b155d2577ee26920 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Thu, 16 Apr 2026 15:39:35 +0100 Subject: [PATCH] Workaround verification issue by reloading --- apps/web/src/components/views/auth/LoginWithQR.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/views/auth/LoginWithQR.tsx b/apps/web/src/components/views/auth/LoginWithQR.tsx index 6327fcdd02..5752c574a8 100644 --- a/apps/web/src/components/views/auth/LoginWithQR.tsx +++ b/apps/web/src/components/views/auth/LoginWithQR.tsx @@ -258,21 +258,21 @@ export default class LoginWithQR extends React.Component { if (secrets) { const crypto = MatrixClientPeg.safeGet().getCrypto(); - if (crypto) { - await crypto.importSecretsBundle?.(secrets); + if (crypto?.importSecretsBundle) { + await crypto.importSecretsBundle(secrets); // it should be sufficient to just upload the device keys with the signature // but this seems to do the job for now await crypto.crossSignDevice(deviceId); + + // PROTOTYPE: this is a fudge to bypass the complete security step + window.location.reload(); } else { - logger.warn("Crypto not initialised"); + logger.warn("Crypto not initialised or no importSecretsBundle() method, cannot import secrets from QR login"); } } else { logger.warn("No secrets received from QR login"); } - // PROTOTYPE: fudge to try and allow the self verification to complete before we change screen - await new Promise((resolve) => setTimeout(resolve, 1000)); - // done this.onFinished(true, credentials); }