From 03da960c33a2c39b9ebea7f29bc45c46ed4ab4fe Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sun, 29 Sep 2024 05:40:37 +0530 Subject: [PATCH] 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. --- web/apps/photos/src/pages/gallery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index a80b1dd1e0..4c40d02b27 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -255,7 +255,7 @@ export default function Gallery() { accept: ".zip", }); - const syncInProgress = useRef(true); + const syncInProgress = useRef(false); const syncInterval = useRef(); const resync = useRef<{ force: boolean; silent: boolean }>();