π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix context-menu send link to respect multi-selection
Anand Baburajan4b2ba2411d14
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 0a89208972..494c781b70 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -1375,16 +1375,12 @@ const Page: React.FC = () => {* and selects an action from the context menu.*/const handleContextMenuAction = useCallback(- (action: FileContextAction, targetFile?: EnteFile) => {+ (action: FileContextAction) => {// The selection should already be set by FileList's handleContextMenu// We just need to invoke the appropriate action handlerswitch (action) {case "sendLink":- if (targetFile) {- void handleFileViewerSendLink(targetFile);- } else {- createFileOpHandler("sendLink")();- }+ createFileOpHandler("sendLink")();break;case "download":createFileOpHandler("download")();@@ -1538,7 +1534,6 @@ const Page: React.FC = () => {createFileOpHandler,createOnCreateForCollectionOp,createOnSelectForCollectionOp,- handleFileViewerSendLink,handleOpenCollectionSelector,handleRemoveFilesFromCollection,showMiniDialog,