core: complete receiving locally encrypted inline files when the temporary folder is on another file system

This commit is contained in:
Narasimha-sc committed 2026-10-18 10:41:08 +00:00
1 parent 8403bee1eb
commit baa66a976b
1 file changed
+3 -1
+3 -1
View File
@@ -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 ()