mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 12:42:28 +00:00
core: allow deleting user when user record in agent database was deleted (#4851)
This commit is contained in:
1 parent
5ed701402b
commit
74b837bf9a
4 files changed
+8
-5
No files matched your search
+4
-1
@@ -2807,7 +2807,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