mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-08-27 22:34:59 +00:00
xftp: constrain supported file size to 1gb
This commit is contained in:
+7
-2
@@ -158,8 +158,13 @@ testPrepareChunkSizes = do
|
||||
r3 = replicate 3
|
||||
|
||||
uploadProgress :: String -> Bool
|
||||
uploadProgress s = "Uploading file..." `isPrefixOf` s && "File uploaded!" `isInfixOf` s
|
||||
uploadProgress s =
|
||||
"Encrypting file..." `isPrefixOf` s
|
||||
&& "Uploading file..." `isInfixOf` s
|
||||
&& "File uploaded!" `isInfixOf` s
|
||||
|
||||
downloadProgress :: FilePath -> String -> Bool
|
||||
downloadProgress fileName s =
|
||||
"Downloading file..." `isPrefixOf` s && ("File downloaded: " <> recipientFiles </> fileName <> "\r") `isSuffixOf` s
|
||||
"Downloading file..." `isPrefixOf` s
|
||||
&& "Decrypting file..." `isInfixOf` s
|
||||
&& ("File downloaded: " <> recipientFiles </> fileName <> "\r") `isSuffixOf` s
|
||||
|
||||
Reference in New Issue
Block a user