Skip to content

armgit / ente

Public Imported from GitHub
0

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

Exclude family self

Manav Rathifec0b867feab
diff --git a/web/packages/new/photos/components/gallery/helpers.ts b/web/packages/new/photos/components/gallery/helpers.ts
index 311462464b..1df2bb4bc1 100644
--- a/web/packages/new/photos/components/gallery/helpers.ts
+++ b/web/packages/new/photos/components/gallery/helpers.ts
@@ -56,9 +56,7 @@ export const constructEmailList = (
if (!sharees?.length) {
return [];
}
- const shareeEmails = item.sharees
- .filter((sharee) => sharee.email !== user.email)
- .map((sharee) => sharee.email);
+ const shareeEmails = item.sharees.map((sharee) => sharee.email);
return shareeEmails;
}
})
@@ -69,5 +67,5 @@ export const constructEmailList = (
const family = familyData.members.map((member) => member.email);
emails.push(...family);
}
- return Array.from(new Set(emails));
+ return Array.from(new Set(emails.filter((email) => email !== user.email)));
};