Skip to content

armgit / ente

Public Imported from GitHub
0

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

Restrict FileViewer back interception to public albums

Anand Baburajan38463e70aa0c
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsx
index 49ab24ef80..db0080f5c1 100644
--- a/web/packages/gallery/components/viewer/FileViewer.tsx
+++ b/web/packages/gallery/components/viewer/FileViewer.tsx
@@ -439,7 +439,7 @@ export const FileViewer: React.FC<FileViewerProps> = ({
enableJoin = true,
}) => {
const { onGenericError } = useBaseContext();
- const shouldCloseOnBrowserBack = !user;
+ const shouldCloseOnBrowserBack = !!publicAlbumsCredentials;
// There are 3 things involved in this dance:
//