Skip to content

Comments

fix: Mentions in chat bubbles should not be underlined - WPB-20367#4329

Open
SyamalaHari wants to merge 2 commits intodevelopfrom
fix/WPB-20367---iOS-Mentions-in-chat-bubbles-should-not-be-underlined
Open

fix: Mentions in chat bubbles should not be underlined - WPB-20367#4329
SyamalaHari wants to merge 2 commits intodevelopfrom
fix/WPB-20367---iOS-Mentions-in-chat-bubbles-should-not-be-underlined

Conversation

@SyamalaHari
Copy link
Collaborator

@SyamalaHari SyamalaHari commented Feb 18, 2026

BugWPB-20367 [iOS] Mentions in chat bubbles should not be underlined

Issue

Embedded links are not detected and underlined

See ticket for example

Testing

Please test with embedded links and see if underline is applied
Optional: attachments like images, videos, etc.


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Test Results

1 868 tests   1 841 ✅  2m 14s ⏱️
  301 suites     27 💤
    1 files        0 ❌

Results for commit c2ed28a.

♻️ This comment has been updated with latest results.

Summary: workflow run #22155372684
Allure report (download zip): html-report-27980-fix_WPB-20367---iOS-Mentions-in-chat-bubbles-should-not-be-underlined

@datadog-wireapp
Copy link

datadog-wireapp bot commented Feb 18, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c2ed28a | Docs | Was this helpful? Give us feedback!

@sonarqubecloud
Copy link

}
// Check if this link range overlaps with any mention.
// If it does, the mention's styling (no underline) should take precedence.
let isOverlappingMention = mentionRanges.contains { NSIntersectionRange(linkRange, $0).length > 0 }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is really needed this comment? Implementation is readable.

in: NSRange(location: 0, length: mutableAttributedText.length),
options: []
) { value, range, _ in
if let link = value as? URL {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is possible replace if-let by guard for avoiding pyramid of doom?

}

static func findEmbeddedLinks(in textMessageData: TextMessageData) -> [NSTextCheckingResult] {
if let originalURLString = textMessageData.linkPreview?.originalURLString,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is possible replace if-let by guard ?

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