mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-23 11:05:46 +00:00
core: allow deleting user when user record in agent database was deleted (#4851)
This commit is contained in:
committed by
Evgeny Poberezkin
parent
691cd489ea
commit
351cfcbcbc
+4
-1
@@ -2763,7 +2763,10 @@ processChatCommand' vr = \case
|
||||
filesInfo <- withFastStore' (`getUserFileInfo` user)
|
||||
cancelFilesInProgress user filesInfo
|
||||
deleteFilesLocally filesInfo
|
||||
withAgent $ \a -> deleteUser a (aUserId user) delSMPQueues
|
||||
withAgent (\a -> deleteUser a (aUserId user) delSMPQueues)
|
||||
`catchChatError` \case
|
||||
e@(ChatErrorAgent NO_USER _) -> toView $ CRChatError (Just user) e
|
||||
e -> throwError e
|
||||
withFastStore' (`deleteUserRecord` user)
|
||||
when (activeUser user) $ chatWriteVar currentUser Nothing
|
||||
ok_
|
||||
|
||||
Reference in New Issue
Block a user