core: clean up incognito profiles (#1262)

This commit is contained in:
JRoberts
2022-10-27 14:25:48 +04:00
committed by GitHub
parent e06d4e5c85
commit 352a4f3d2a
5 changed files with 48 additions and 25 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ processChatCommand = \case
-- functions below are called in separate transactions to prevent crashes on android
-- (possibly, race condition on integrity check?)
withStore' $ \db -> deleteContactConnectionsAndFiles db userId ct
withStore' $ \db -> deleteContact db userId ct
withStore' $ \db -> deleteContact db user ct
unsetActive $ ActiveC localDisplayName
pure $ CRContactDeleted ct
CTContactConnection -> withChatLock "deleteChat contactConnection" . procCmd $ do