From baa66a976b07ebc3324f261b483d7a2c2e8504bf Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Sun, 18 Oct 2026 09:55:48 +0000 Subject: [PATCH] core: complete receiving locally encrypted inline files when the temporary folder is on another file system --- src/Simplex/Chat/Library/Internal.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Simplex/Chat/Library/Internal.hs b/src/Simplex/Chat/Library/Internal.hs index ced5c8c676..50611616e6 100644 --- a/src/Simplex/Chat/Library/Internal.hs +++ b/src/Simplex/Chat/Library/Internal.hs @@ -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 ()