From fdfd7db3628de5885c9b77cf2fad29f50778d319 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 22 Mar 2021 18:29:57 +0100 Subject: [PATCH] Remove autostore modal when the pad has been deleted by another user --- www/common/common-ui-elements.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index b61cc5f9e..a02accadf 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2551,6 +2551,10 @@ define([ } else if (err.type === 'EDELETED') { if (priv.burnAfterReading) { return void cb(); } + if (autoStoreModal[priv.channel]) { + autoStoreModal[priv.channel].delete(); + delete autoStoreModal[priv.channel]; + } // View users have the wrong seed, thay can't retireve access directly // Version 1 hashes don't support passwords if (!priv.readOnly && !priv.oldVersionHash) {