Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathif4ec5f348d31
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<ManagePublicShareOptionsProps> = ({
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<void>;
setBlockingLoad: (value: boolean) => void;
photoListHeader: TimeStampListItem;
user: User;