omi icon indicating copy to clipboard operation
omi copied to clipboard

Sharing a conversation asks 'Share Conversation?' before the system share sheet

Open Itaxh1 opened this issue 2 months ago • 1 comments

Product impact

  • Primary loop layer: UX-Polish
  • [ ] Involves data loss, failed capture, or broken sync/trust

Describe the bug

Share on a private conversation (detail page, or a row's long-press menu) first shows a confirmation, "Share Conversation? Anyone with the link can view", and only then opens the iOS/Android share sheet. The code already makes the conversation link-visible for the sheet and reverts it to private if the sheet is dismissed without sharing. So the extra dialog adds a tap without protecting anything, and users expect Share to open the share sheet straight away.

To reproduce

Open a private conversation → Share.

Current behavior

A confirmation dialog, then the share sheet.

Expected behavior

The system share sheet opens at once. A link that can't be made still shows an error, and a dismissed sheet still reverts the conversation to private.

Evidence

Related: #5476

Fix available

Fixed with a regression test on the fork branch design/v2-step0-tokens (9d269cc120, ffef7aa73c). It will be linked from the draft PR.

Found while testing the Omi v2 Flutter restyle on an iPhone, then confirmed against main at 32c2ed22cf.

Itaxh1 avatar Sep 26 '26 17:09 Itaxh1

Submitted fix with hermetic regression tests in #21338:

  • Root Cause & Fix:
    • Removed the redundant showOmiConfirm dialog in both _shareConversation (lib/pages/conversation_detail/page.dart) and shareConversation (lib/pages/conversations/conversation_actions.dart).
    • Tapping Share directly proceeds to link visibility and immediately displays the system share sheet.
    • Automatically reverts the conversation to private if the sheet is dismissed without sharing, preserving existing privacy guarantees.
  • Hermetic Tests & Changelog:
    • Added dedicated regression tests in app/test/widgets/conversation_share_test.dart asserting immediate system share sheet presentation without dialog prompts.
    • Updated conversation_action_analytics_test.dart and conversation_hub_actions_test.dart.
    • Added unreleased changelog fragment 20261012-share-conversation-direct-sheet.json.

Dragonire9 avatar Oct 12 '26 19:10 Dragonire9