π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
mig
Manav Rathi03c37ae4488d
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 05713964f1..8999d0631f 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -63,7 +63,6 @@ import {FlexWrapper,HorizontalFlex,} from "@ente/shared/components/Container";-import type { SetDialogBoxAttributes } from "@ente/shared/components/DialogBox/types";import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";import { getRecoveryKey } from "@ente/shared/crypto/helpers";import { CustomError } from "@ente/shared/error";@@ -134,7 +133,6 @@ import {SelectedState,SetFilesDownloadProgressAttributes,SetFilesDownloadProgressAttributesCreator,- type SetLoading,} from "types/gallery";import {COLLECTION_OPS_TYPE,@@ -448,13 +446,10 @@ export default function Gallery() {}, [activeCollectionID, router.isReady]);useEffect(() => {- const key = getKey(SESSION_KEYS.ENCRYPTION_KEY);- if (router.isReady && key) {- checkSubscriptionPurchase(+ if (router.isReady && getKey(SESSION_KEYS.ENCRYPTION_KEY)) {+ handleSubscriptionCompletionRedirectIfNeeded(showMiniDialog,- setDialogMessage,router,- setBlockingLoad,);}}, [router.isReady]);@@ -1241,11 +1236,9 @@ const HiddenSectionNavbarContents: React.FC<** Check if these query parameters exist, and if so, act on them appropriately.*/-export async function checkSubscriptionPurchase(+export async function handleSubscriptionCompletionRedirectIfNeeded(showMiniDialog: (attributes: MiniDialogAttributes) => void,- setDialogMessage: SetDialogBoxAttributes,router: NextRouter,- setLoading: SetLoading,) {const { session_id: sessionID, status, reason } = router.query;