This commit is contained in:
Manav Rathi
2025-06-26 07:17:01 +05:30
parent 5a881440d9
commit f4ec5f348d
3 changed files with 1 additions and 4 deletions

View File

@@ -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);

View File

@@ -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,

View File

@@ -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;