Skip to content

[mob][photos] Share-sheet fallback when iOS Mail.app is unconfigured#10108

Open
AmanRajSinghMourya wants to merge 6 commits intomainfrom
photos-ios-mail-share-fallback
Open

[mob][photos] Share-sheet fallback when iOS Mail.app is unconfigured#10108
AmanRajSinghMourya wants to merge 6 commits intomainfrom
photos-ios-mail-share-fallback

Conversation

@AmanRajSinghMourya
Copy link
Copy Markdown
Contributor

@AmanRajSinghMourya AmanRajSinghMourya commented Apr 17, 2026

  • Copy to clipboard also copies the To: support@ente.com support email
  • Adds an in-app View logs entry on Help & Support, gated on flagService.internalUser && kDebugMode.

Report Issue with logs now falls back to the system share sheet when
FlutterEmailSender throws not_available (iOS Mail.app with no account).
Also adds an internal/debug-only View logs entry on Help & Support.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48c29ad02e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +323 to +327
return _shareAttachmentsViaSheet(
context,
subject: subject,
body: body,
attachmentPaths: attachmentPaths,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve recipient when falling back to share sheet

When FlutterEmailSender returns not_available, this branch calls _shareAttachmentsViaSheet without passing to, and the share payload only includes subject, text, and files. In the Report Issue / Send Logs flows this means the selected mail app opens without the support recipient prefilled, so users can easily send nowhere or to the wrong address while the app treats the action as success.

Useful? React with 👍 / 👎.

Comment thread mobile/apps/photos/lib/utils/email_util.dart Outdated
@AmanRajSinghMourya
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0f2e5bc6e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart
ashilkn
ashilkn previously approved these changes Apr 23, 2026
);
},
),
if (flagService.internalUser && kDebugMode) ...[
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do internal user or kDebugMode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants