π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use export copy in no-mail logs fallback
ashilknaac8286191a1
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex 9bf9537e5a..2cdfee3e7f 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -741,7 +741,8 @@"message": "Message","deviceInfo": "Device info","logs": "Logs",- "logsNotCopiedDownloadNote": "Logs are not copied. Download the logs and attach them to your email.",+ "export": "Export",+ "logsNotCopiedDownloadNote": "Logs are not copied. Export the logs and attach them to your email.","attachedSize": "Attached ({size})","@attachedSize": {"description": "Label for attached logs with formatted file size",diff --git a/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart b/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dartindex 55b1f21466..80a42c3275 100644--- a/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart+++ b/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart@@ -119,13 +119,15 @@ class NoMailAppSheet extends StatelessWidget {}String _buildCopyAllPayload(AppLocalizations l10n) {+ final shouldIncludeLogsInCopyAll = logsFilePath == null &&+ logsLabel != null &&+ logsLabel!.trim().isNotEmpty;final items = <String>["${l10n.subject}: $subject","${l10n.message}: $message",if (deviceInfo != null && deviceInfo!.trim().isNotEmpty)"${l10n.deviceInfo}: ${deviceInfo!.trim()}",- if (logsLabel != null && logsLabel!.trim().isNotEmpty)- "${l10n.logs}: ${logsLabel!.trim()}",+ if (shouldIncludeLogsInCopyAll) "${l10n.logs}: ${logsLabel!.trim()}",];return items.join("\n\n");}diff --git a/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart b/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dartindex bb4fc8f906..1ec368c453 100644--- a/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart+++ b/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart@@ -1,6 +1,5 @@import "dart:io";-import "package:ente_pure_utils/ente_pure_utils.dart";import "package:flutter/material.dart";import "package:logging/logging.dart";import "package:photos/generated/l10n.dart";@@ -182,8 +181,7 @@ class _ReportIssuePageState extends State<ReportIssuePage> {if (_attachLogs) {logsZipFilePath = await getZippedLogsFile(context);- final logsSize = await File(logsZipFilePath).length();- logsLabel = l10n.attachedSize(size: formatBytes(logsSize));+ logsLabel = l10n.export;}final didOpenComposer = _attachLogs