Start with a idle state

Not sure why it was true - there is a possibility that this was intentional, but
I can't think why. The reason for changing it is to fix our "isForced" logic
(otherwise the non-file-related sync doesn't run on app start), without
introducing _another_ flag to track if the sync was initiated from a gallery
useEffect or by the preUploadSync.
This commit is contained in:
Manav Rathi 2024-09-29 05:40:37 +05:30
parent 2bdc010849
commit 03da960c33
No known key found for this signature in database

View File

@ -255,7 +255,7 @@ export default function Gallery() {
accept: ".zip", accept: ".zip",
}); });
const syncInProgress = useRef(true); const syncInProgress = useRef(false);
const syncInterval = useRef<NodeJS.Timeout>(); const syncInterval = useRef<NodeJS.Timeout>();
const resync = useRef<{ force: boolean; silent: boolean }>(); const resync = useRef<{ force: boolean; silent: boolean }>();