Browse Source

add missing status

pull/1/head
PhilReact 8 months ago
parent
commit
cd89548928
  1. 4
      src/pages/Mail/OpenMail.tsx
  2. 10
      src/wrappers/DownloadWrapper.tsx

4
src/pages/Mail/OpenMail.tsx

@ -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,6 +273,8 @@ const [isValid, setIsValid] = React.useState<boolean>(true)
</>
) : resourceStatus?.status === "DOWNLOADED" ? (
<>Download Completed: building message...</>
) : resourceStatus?.status === "MISSING_DATA" ? (
<>Missing Data: make sure the sender has their Core turned on.</>
) : resourceStatus?.status === "DOWNLOADING" ? (
<>Downloading Message</>
) : resourceStatus?.status !== "READY" ? (

10
src/wrappers/DownloadWrapper.tsx

@ -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…
Cancel
Save