mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-11 20:27:39 +00:00
core: complete receiving locally encrypted inline files when the temporary folder is on another file system
This commit is contained in:
1 parent
8403bee1eb
commit
baa66a976b
1 file changed
+3
-1
@@ -2054,7 +2054,9 @@ appendFileChunk ft@RcvFileTransfer {fileId, fileStatus, cryptoArgs, fileInvitati
|
||||
tryAllErrors (liftError encryptErr $ encryptFile fsFilePath tmpFile cfArgs) >>= \case
|
||||
Right () -> do
|
||||
removeFile fsFilePath `catchAllErrors` \_ -> pure ()
|
||||
renameFile tmpFile fsFilePath
|
||||
renameFile tmpFile fsFilePath `catchAllErrors` \_ -> do
|
||||
copyFile tmpFile fsFilePath
|
||||
removeFile tmpFile `catchAllErrors` \_ -> pure ()
|
||||
Left e -> do
|
||||
eToView e
|
||||
removeFile tmpFile `catchAllErrors` \_ -> pure ()
|
||||
|
||||
Reference in new issue
Block a user