core: do not mark store as changed after passphrase test (#3833)

* core: do not mark store as changed after passphrase test

* fix
This commit is contained in:
Evgeny Poberezkin 2024-02-24 13:37:09 +00:00 committed by GitHub
parent 2d643e8d29
commit 395654098c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -599,7 +599,7 @@ processChatCommand' vr = \case
pure $ CRArchiveImported fileErrs pure $ CRArchiveImported fileErrs
APIDeleteStorage -> withStoreChanged deleteStorage APIDeleteStorage -> withStoreChanged deleteStorage
APIStorageEncryption cfg -> withStoreChanged $ sqlCipherExport cfg APIStorageEncryption cfg -> withStoreChanged $ sqlCipherExport cfg
TestStorageEncryption key -> withStoreChanged $ sqlCipherTestKey key TestStorageEncryption key -> sqlCipherTestKey key >> ok_
ExecChatStoreSQL query -> CRSQLResult <$> withStore' (`execSQL` query) ExecChatStoreSQL query -> CRSQLResult <$> withStore' (`execSQL` query)
ExecAgentStoreSQL query -> CRSQLResult <$> withAgent (`execAgentStoreSQL` query) ExecAgentStoreSQL query -> CRSQLResult <$> withAgent (`execAgentStoreSQL` query)
SlowSQLQueries -> do SlowSQLQueries -> do