From 395654098c6c4ca14ce6e97aea2add043f41060e Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sat, 24 Feb 2024 13:37:09 +0000 Subject: [PATCH] core: do not mark store as changed after passphrase test (#3833) * core: do not mark store as changed after passphrase test * fix --- src/Simplex/Chat.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Simplex/Chat.hs b/src/Simplex/Chat.hs index 9b0741613..9d5c23d7a 100644 --- a/src/Simplex/Chat.hs +++ b/src/Simplex/Chat.hs @@ -599,7 +599,7 @@ processChatCommand' vr = \case pure $ CRArchiveImported fileErrs APIDeleteStorage -> withStoreChanged deleteStorage APIStorageEncryption cfg -> withStoreChanged $ sqlCipherExport cfg - TestStorageEncryption key -> withStoreChanged $ sqlCipherTestKey key + TestStorageEncryption key -> sqlCipherTestKey key >> ok_ ExecChatStoreSQL query -> CRSQLResult <$> withStore' (`execSQL` query) ExecAgentStoreSQL query -> CRSQLResult <$> withAgent (`execAgentStoreSQL` query) SlowSQLQueries -> do