From 87a0232d8eee8a2a2ce661ca2c1c0fa45c3025ea Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Fri, 11 Sep 2026 15:24:18 +0000 Subject: [PATCH] core: deleting the seed reports ok, not the empty wallet Delete re-ran /_wallet, so a successful delete printed "no wallet key", which is the same words the error uses and reads as a failure. There is nothing to show after a delete. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01Rvc3HbiWBTqbAvRT45G5oX --- src/Simplex/Chat/Library/Commands.hs | 2 +- tests/WalletTests.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simplex/Chat/Library/Commands.hs b/src/Simplex/Chat/Library/Commands.hs index c601c3efd6..e62dd88f7d 100644 --- a/src/Simplex/Chat/Library/Commands.hs +++ b/src/Simplex/Chat/Library/Commands.hs @@ -1516,7 +1516,7 @@ processChatCommand cxt nm = \case APIWalletDelete -> withUser $ \_ -> do seed <- deviceSeed withFastStore' $ \db -> deleteSeed db (wsId seed) - processChatCommand cxt nm APIWallet + ok_ APISendCallInvitation contactId callType -> withUser $ \user -> do -- party initiating call ct <- withFastStore $ \db -> getContact db cxt user contactId diff --git a/tests/WalletTests.hs b/tests/WalletTests.hs index 4afbb0bff9..8e25344cba 100644 --- a/tests/WalletTests.hs +++ b/tests/WalletTests.hs @@ -138,7 +138,7 @@ testWalletDelete ps = withNewTestChat ps "alice" aliceProfile $ \alice -> do alice ##> ("/_wallet create mnemonic=" <> B.unpack testPhrase) _ <- nameRows alice alice ##> "/_wallet delete" - alice <## "no wallet key" + alice <## "ok" alice ##> ("/_wallet create mnemonic=" <> B.unpack testPhrase) _ <- nameRows alice pure ()