Skip to content

fix: remove underline for mentions of own messages in chat bubbles - WPB-20367#4226

Open
SyamalaHari wants to merge 1 commit intorelease/cycle-4.15from
fix/WPB-20367-remove-underline-for-mentions-of-own-messages-in-chat-bubbles
Open

fix: remove underline for mentions of own messages in chat bubbles - WPB-20367#4226
SyamalaHari wants to merge 1 commit intorelease/cycle-4.15from
fix/WPB-20367-remove-underline-for-mentions-of-own-messages-in-chat-bubbles

Conversation

@SyamalaHari
Copy link
Collaborator

@SyamalaHari SyamalaHari commented Jan 29, 2026

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

Issue

Fixing two issues:

Fix: Mentions in chat bubbles should not be underlined
Improvement: Links in chat bubbles of others messages should be underlined
Solution: Removed globally applying link attributes and applying individually to links and mentions

Testing

  1. Others messages links must have underline
  2. Own messages mentions must not have underline

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.

@SyamalaHari SyamalaHari requested a review from netbe January 29, 2026 14:08
@SyamalaHari SyamalaHari changed the base branch from develop to release/cycle-4.15 January 29, 2026 14:09
@github-actions
Copy link
Contributor

github-actions bot commented Jan 29, 2026

Test Results

    2 files    354 suites   2m 45s ⏱️
2 122 tests 2 093 ✅ 27 💤 2 ❌
2 122 runs  2 095 ✅ 27 💤 0 ❌

For more details on these failures, see this check.

Results for commit 60c08f4.

Summary: workflow run #21481352352

@samwyndham
Copy link
Contributor

samwyndham commented Feb 5, 2026

@SyamalaHari Is this the same as #4149 but targeting a different branch?

@SyamalaHari
Copy link
Collaborator Author

@SyamalaHari Is this the same as #4149 but targeting a different branch?

Yes thank you :)

Copy link
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

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

LGTM - this is a cherry pick of #4149

@netbe netbe changed the title fix: remove underline for mentions of own messages in chat bubbles merge in release - WPB-20367 fix: remove underline for mentions of own messages in chat bubbles - WPB-20367 Feb 6, 2026
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

approved, but left a question to better understand

guard linkRange.location + linkRange.length <= mutableAttributedText.length else { continue }

// IMPORTANT: Check for overlap with mentions.
// If a detected link overlaps with a mention, the mention's styling should take precedence.
Copy link
Collaborator

Choose a reason for hiding this comment

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

question: could you give a concrete example? I have hard time to understand this

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.

3 participants