π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Gate panorama checks to editable files
Neeraj Guptaebe6b24c022e
diff --git a/mobile/apps/photos/lib/ui/actions/file/file_actions.dart b/mobile/apps/photos/lib/ui/actions/file/file_actions.dartindex 8e605391e3..a0c1450f53 100644--- a/mobile/apps/photos/lib/ui/actions/file/file_actions.dart+++ b/mobile/apps/photos/lib/ui/actions/file/file_actions.dart@@ -144,7 +144,7 @@ Future<void> showSingleFileDeleteSheet(}Future<void> showDetailsSheet(BuildContext context, EnteFile file) async {- if (file.isUploaded && file.isPanorama() == null) {+ if (file.canEditMetaInfo && file.isPanorama() == null) {guardedCheckPanorama(file).ignore();}Bus.instance.fire(diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dartindex a64fd9457a..5b0ace5bca 100644--- a/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart@@ -120,7 +120,9 @@ class FileBottomBarState extends State<FileBottomBar> {@overrideWidget build(BuildContext context) {- if (widget.file.canBePanorama() && widget.file.isPanorama() == null) {+ if (widget.file.canEditMetaInfo &&+ widget.file.canBePanorama() &&+ widget.file.isPanorama() == null) {if (lastFileGenID != widget.file.generatedID) {lastFileGenID = widget.file.generatedID;guardedCheckPanorama(widget.file).ignore();diff --git a/mobile/apps/photos/lib/utils/panorama_util.dart b/mobile/apps/photos/lib/utils/panorama_util.dartindex ff38950aca..678f47b28f 100644--- a/mobile/apps/photos/lib/utils/panorama_util.dart+++ b/mobile/apps/photos/lib/utils/panorama_util.dart@@ -42,7 +42,7 @@ bool checkPanoramaFromXMP(Map<String, dynamic> xmpData) {// guardedCheckPanorama() method is used to check if the file is a panorama image.Future<void> guardedCheckPanorama(EnteFile file) async {- if (file.isPanorama() != null) {+ if (!file.canEditMetaInfo || file.isPanorama() != null) {return;}_logger.info(