Skip to content

Preserve complete URLs and support multiple link previews - #237

Draft
Xare123 wants to merge 1 commit into
OpenBubbles:rustpushfrom
Xare123:agent/multiple-link-previews
Draft

Preserve complete URLs and support multiple link previews#237
Xare123 wants to merge 1 commit into
OpenBubbles:rustpushfrom
Xare123:agent/multiple-link-previews

Conversation

@Xare123

@Xare123 Xare123 commented Aug 16, 2026

Copy link
Copy Markdown

Problem

Messages containing multiple links could share one preview surface, and valid URL characters such as +, query strings, fragments, percent escapes, and parentheses could fall outside the clickable range.

Change

Parse complete URL ranges, keep same-host links with different paths separate, and cache/render metadata per URL. Bare image URLs retain preview fallback behavior.

Validation

Focused Flutter tests pass: 5/5, covering multiple paths, +, percent escapes, queries, fragments, parentheses, sentence punctuation, and modern TLDs.

Non-goals

This does not change draft retention, send queue behavior, attachments, FaceTime, or CloudKit.

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.

1 participant