π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Exclude comment likes when checking for existing file reaction
Anand Baburajandfd829a5ecb7
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsxindex 99d017c012..252fed8a2e 100644--- a/web/packages/gallery/components/viewer/FileViewer.tsx+++ b/web/packages/gallery/components/viewer/FileViewer.tsx@@ -721,13 +721,14 @@ export const FileViewer: React.FC<FileViewerProps> = ({const collectionId = file.collectionID;const storedAnonIdentity = getStoredAnonIdentity(collectionId);- // Check if already liked by current anon user+ // Check if already liked by current anon user (file-level only, not comment likes)const fileReactionsMap = allReactionsRef.current.get(fileId);const collectionReactions =fileReactionsMap?.get(collectionId) ?? [];const existingReaction = collectionReactions.find((r) =>r.reactionType === "green_heart" &&+ !r.commentID &&storedAnonIdentity &&r.anonUserID === storedAnonIdentity.anonUserID,);