From f4ec5f348d31f6000528e7d94d1f2c9030d9bdf8 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 26 Jun 2025 07:17:01 +0530 Subject: [PATCH] Prune --- web/apps/photos/src/components/Collections/CollectionShare.tsx | 2 +- web/apps/photos/src/pages/gallery.tsx | 2 -- web/apps/photos/src/types/gallery/index.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx index cf35aa6597..6d2d9ac349 100644 --- a/web/apps/photos/src/components/Collections/CollectionShare.tsx +++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx @@ -1246,7 +1246,7 @@ const ManagePublicShareOptions: React.FC = ({ galleryContext.setBlockingLoad(true); await deleteShareURL(collection.id); setPublicURL(undefined); - galleryContext.syncWithRemote(true); + void onRemotePull({ silent: true }); onClose(); } catch (e) { log.error("Failed to remove public link", e); diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index fbe1d351a8..b41eb83304 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -131,7 +131,6 @@ import { getSelectedFiles, handleFileOp, type FileOp } from "utils/file"; const defaultGalleryContext: GalleryContextType = { setActiveCollectionID: () => null, - syncWithRemote: () => null, setBlockingLoad: () => null, photoListHeader: null, user: null, @@ -889,7 +888,6 @@ const Page: React.FC = () => { value={{ ...defaultGalleryContext, setActiveCollectionID: handleShowCollectionSummary, - syncWithRemote: (silent) => remotePull({ silent }), setBlockingLoad, photoListHeader, user, diff --git a/web/apps/photos/src/types/gallery/index.ts b/web/apps/photos/src/types/gallery/index.ts index adb262ba6f..a717d31295 100644 --- a/web/apps/photos/src/types/gallery/index.ts +++ b/web/apps/photos/src/types/gallery/index.ts @@ -40,7 +40,6 @@ export interface MergedSourceURL { export interface GalleryContextType { setActiveCollectionID: (collectionID: number) => void; - syncWithRemote: (silent?: boolean) => Promise; setBlockingLoad: (value: boolean) => void; photoListHeader: TimeStampListItem; user: User;