mirror of
https://github.com/Qortal/q-mail.git
synced 2025-02-11 17:55:56 +00:00
add missing status
This commit is contained in:
parent
819b97703a
commit
cd89548928
@ -183,6 +183,7 @@ const [isValid, setIsValid] = React.useState<boolean>(true)
|
||||
useEffect(()=> {
|
||||
handleDownloadMail()
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<Dialog
|
||||
open={open}
|
||||
@ -214,6 +215,7 @@ const [isValid, setIsValid] = React.useState<boolean>(true)
|
||||
Message has an invalid format
|
||||
</Typography>
|
||||
)}
|
||||
{}
|
||||
{!resourceStatus.status && (isValid && !unableToDecrypt) && (
|
||||
<Box
|
||||
|
||||
@ -271,7 +273,9 @@ const [isValid, setIsValid] = React.useState<boolean>(true)
|
||||
</>
|
||||
) : resourceStatus?.status === "DOWNLOADED" ? (
|
||||
<>Download Completed: building message...</>
|
||||
) : resourceStatus?.status === "DOWNLOADING" ? (
|
||||
) : resourceStatus?.status === "MISSING_DATA" ? (
|
||||
<>Missing Data: make sure the sender has their Core turned on.</>
|
||||
) : resourceStatus?.status === "DOWNLOADING" ? (
|
||||
<>Downloading Message</>
|
||||
) : resourceStatus?.status !== "READY" ? (
|
||||
<>
|
||||
|
@ -170,6 +170,16 @@ const DownloadWrapper: React.FC<Props> = ({ children }) => {
|
||||
})
|
||||
)
|
||||
}
|
||||
if (res?.status === 'MISSING_DATA') {
|
||||
dispatch(
|
||||
updateDownloads({
|
||||
name,
|
||||
service,
|
||||
identifier,
|
||||
status: res
|
||||
})
|
||||
)
|
||||
}
|
||||
}, 5000) // 1 second interval
|
||||
|
||||
fetchVideoUrl({
|
||||
|
Loading…
x
Reference in New Issue
Block a user