mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-30 05:20:06 +00:00
throw correct error for missing file
This commit is contained in:
@@ -981,7 +981,7 @@ getLocalCryptoFile db userId fileId sent =
|
||||
[(Nothing, Nothing, FPLocal)] -> do
|
||||
LocalFileMeta {filePath, fileCryptoArgs} <- getLocalFileMeta db userId fileId
|
||||
pure $ CryptoFile filePath fileCryptoArgs
|
||||
_ -> throwError $ SEBadFileTransfer fileId
|
||||
_ -> throwError $ SEFileNotFound fileId
|
||||
|
||||
updateDirectCIFileStatus :: forall d. MsgDirectionI d => DB.Connection -> VersionRange -> User -> Int64 -> CIFileStatus d -> ExceptT StoreError IO AChatItem
|
||||
updateDirectCIFileStatus db vr user fileId fileStatus = do
|
||||
|
||||
Reference in New Issue
Block a user