Skip to content

Copy a link from a chat message (#908)#967

Merged
mremond merged 9 commits into
mainfrom
mr/fluux-messenger-908-5a648a
Jul 10, 2026
Merged

Copy a link from a chat message (#908)#967
mremond merged 9 commits into
mainfrom
mr/fluux-messenger-908-5a648a

Conversation

@mremond

@mremond mremond commented Jul 10, 2026

Copy link
Copy Markdown
Member

Fixes #908.

Right-clicking a link in a chat message did nothing on packaged desktop builds: the native WebView context menu is globally suppressed, and message links were plain <a> with no menu of their own.

What changed

  • Desktop: right-clicking a link opens a custom LinkContextMenu popover — Copy link / Open in browser — mirroring the existing ImageContextMenu.
  • Touch: the message action sheet gains a Copy link row (direct copy for one link; an in-sheet chooser when a message holds several).
  • Links now render through a shared MessageLink component (right-click only, so it never double-fires with the bubble's long-press); its menu is portalled to document.body so position: fixed survives the virtualizer's row transforms.
  • Extracted the duplicated openInBrowser helper into utils/openInBrowser.ts; added an extractLinks helper reusing the renderer's URL regex.
  • New i18n keys chat.copyLink / chat.copyLinkChoose across all 33 locales.

@mremond mremond added this to the 0.17.1 milestone Jul 10, 2026
@mremond mremond merged commit 47912a9 into main Jul 10, 2026
3 checks passed
@mremond mremond deleted the mr/fluux-messenger-908-5a648a branch July 10, 2026 14:09
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.

Right-click to copy website link not working in chat message

1 participant