Skip to content

fix: show skin tone reactions in message details#4875

Open
MohamadJaara wants to merge 1 commit into
developfrom
mo/fix-message-details-skin-tone-reactions
Open

fix: show skin tone reactions in message details#4875
MohamadJaara wants to merge 1 commit into
developfrom
mo/fix-message-details-skin-tone-reactions

Conversation

@MohamadJaara

Copy link
Copy Markdown
Member

Summary

Fixes message details not showing reactions when the reaction emoji includes a skin tone modifier.

Why this happened

The conversation cell renders reactions directly from the stored reaction string, so emoji such as 🙌🏻 are visible in the message bubble.

The message details screen used a different path: it tried to resolve every reaction through EmojiRepository before creating the reactions section. Skin tone variants are valid reaction strings, but they are not necessarily present as exact entries in the emoji repository. When lookup failed, the data source dropped the reaction entirely, so the Reactions tab showed the empty state even though the message had reactions.

How it was fixed

The message details data source now keeps valid reaction rows even when the emoji repository cannot resolve the exact reaction string.

For skin tone emoji, it falls back to looking up the base emoji after removing Fitzpatrick skin tone modifiers, so the UI can still show a localized emoji name while preserving the original reaction emoji in the header.

For unknown or newer emoji that are not in the repository at all, the data source now displays the raw emoji with the user count instead of hiding the reaction.

Tests

Added regression coverage for:

  • a reaction with a skin tone modifier, e.g. 🙌🏻
  • a reaction missing from EmojiRepository, e.g. 🫡

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Test Results

1 900 tests   1 873 ✅  2m 34s ⏱️
  301 suites     27 💤
    1 files        0 ❌

Results for commit f1f469b.

Summary: workflow run #27787378938
Allure report (download zip): html-report-30941-mo_fix-message-details-skin-tone-reactions

@netbe netbe requested review from a team, jullianm and netbe and removed request for a team June 19, 2026 12:09

@netbe netbe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM:) please add a jira ticket though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants