π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(gallery):strict-remotePull-throws-error
Aswin Asokec01210c675c
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex e8b5b734a4..50c0f3754b 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -808,14 +808,23 @@ const Page: React.FC = () => {remotePullQueue.current.add(async () => {const { silent, source, strict } = opts ?? {};- if (!navigator.onLine) return;+ if (!navigator.onLine) {+ if (strict) throw new Error("Remote pull failed: offline");+ return;+ }if (await isSessionInvalid()) {showSessionExpiredDialog();+ if (strict)+ throw new Error("Remote pull failed: invalid session");return;}if (!(await masterKeyFromSession())) {clearSessionStorage();router.push("/credentials");+ if (strict)+ throw new Error(+ "Remote pull failed: missing master key",+ );return;}