From a51e6ca74af83be80f8c758a3aa31cef29561f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Rame=CC=81?= Date: Tue, 29 Sep 2026 09:55:37 +0200 Subject: [PATCH] fix(ui): missing local keys error was dismissed by another attempt --- .../apps/impress/src/pages/docs/[id]/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frontend/apps/impress/src/pages/docs/[id]/index.tsx b/src/frontend/apps/impress/src/pages/docs/[id]/index.tsx index b7c8af3af..020145d5a 100644 --- a/src/frontend/apps/impress/src/pages/docs/[id]/index.tsx +++ b/src/frontend/apps/impress/src/pages/docs/[id]/index.tsx @@ -296,10 +296,6 @@ const DocPage = ({ id }: DocProps) => { return ; } - if (doc.is_encrypted && decryptionFailure) { - return ; - } - if (doc.is_encrypted && vaultClientError) { return ( { ); } + // After the access checks: with no keys on this device, the editor's attempt fails + // too (MISSING_KEYS), and setting encryption up is the answer, not a retry. + if (doc.is_encrypted && decryptionFailure) { + return ; + } + if (encryptionTransition) { return (