You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-09-12] [$250] inconsistent emoji format for markdown #63833
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.63-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:#63306 Email or phone of affected tester (no customers):testpayment935@gmail.com Issue reported by: Applause Internal Team Device used: Android App Component: Chat Report View
Action Performed:
Open any chat
Type an emoji wrapped with a markdown (_*~😄~*_)
Expected Result:
Emoji is not formatted by the markdown
Actual Result:
Emoji is formatted by the strike through markdown for web and not for hybrid apps.( Inconsistent behavior )
To avoid the difference when selecting, we can adjust verticalAlign to top, or not if we want to be consistent with the input:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
Double strike-through is seen on emoji.
What is the root cause of that problem?
We previously prevented the emoji from being formatted in #40617. The strikethrough style is applied from the parent (<del>) and the emoji itself. In that PR, we apply an inline-flex style so the emoji won't be affected by the parent strikethrough style.
But in #47547, we changed it to inline because selecting the text with emoji won't have the same height.
Compared to when using inline.
What changes do you think we should make in order to solve the problem?
I think it's more important to prevent the emoji from being formatted compared to making sure the selection height to be same and it's barely noticeable too, so I suggest to use inline-flex back and add `textDecorationLine: 'none' to override the text decoration style on the emoji itself.
This feels kinda niche, but I really like the context and historic decisions listed out by @bernhardoj above which explain previous decisions on this sort of thing, which seems considered.
@bernhardoj could you please add a bit more detail on why the display was changed to inline-flex? I’m a bit concerned that reverting this change might be confusing and could be mistaken for a regression, especially since the selection will look different compared to the current version after this update.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other: This inconsistency has existed for a while, and we’ve now decided to align the behavior across all platforms.
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: This issue wasn’t directly linked to any PR. It was about platform inconsistency, and we’ve now decided not to strike through the emoji on any platform.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Open the app and go to any chat.
Type an emoji wrapped in markdown: (_*~😄~*_).
Verify that the emoji is not formatted with strikethrough markdown.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 10, 2025
Triggered auto assignment to @zanyrenney (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.dmkt9 commentedon Jun 10, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Emoji is formatted by the strike through markdown for web and not for hybrid apps.( Inconsistent behavior )
What is the root cause of that problem?
The emoji is wrapped in a span, and its parent span is styled with
text-decoration: line-through;, which causes the emoji’s span to inherit that styleWhat changes do you think we should make in order to solve the problem?
react-native-live-markdown, the emoji styles are defined here with these properties:https://github.com/Expensify/react-native-live-markdown/blob/23e2d192545402ce8485f863c1032a172ce200db/src/web/utils/blockUtils.ts#L29-L37
We can apply the same styling to the emoji in our message component at here:
App/src/styles/utils/emojiDefaultStyles/index.ts
Line 6 in e0250b5
To avoid the difference when selecting, we can adjust
verticalAligntotop, or not if we want to be consistent with the input:What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
bernhardoj commentedon Jun 10, 2025
Copying from #54618
Proposal
Please re-state the problem that we are trying to solve in this issue.
Double strike-through is seen on emoji.
What is the root cause of that problem?
We previously prevented the emoji from being formatted in #40617. The strikethrough style is applied from the parent (
<del>) and the emoji itself. In that PR, we apply an inline-flex style so the emoji won't be affected by the parent strikethrough style.But in #47547, we changed it to inline because selecting the text with emoji won't have the same height.

Compared to when using inline.

What changes do you think we should make in order to solve the problem?
I think it's more important to prevent the emoji from being formatted compared to making sure the selection height to be same and it's barely noticeable too, so I suggest to use inline-flex back and add `textDecorationLine: 'none' to override the text decoration style on the emoji itself.
App/src/styles/utils/emojiDefaultStyles/index.ts
Lines 6 to 9 in e94df0f
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
zanyrenney commentedon Jun 10, 2025
This feels kinda niche, but I really like the context and historic decisions listed out by @bernhardoj above which explain previous decisions on this sort of thing, which seems considered.
[-]inconsistent emoji format for markdown[/-][+][$250] inconsistent emoji format for markdown[/+]melvin-bot commentedon Jun 10, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021932429547807925863
melvin-bot commentedon Jun 10, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (
External)zanyrenney commentedon Jun 10, 2025
Already have the proposal from @bernhardoj if you can please review @jayeshmangwani
jayeshmangwani commentedon Jun 11, 2025
@bernhardoj could you please add a bit more detail on why the display was changed to
inline-flex? I’m a bit concerned that reverting this change might be confusing and could be mistaken for a regression, especially since the selection will look different compared to the current version after this update.115 remaining items
lorretheboy commentedon Sep 12, 2025
Thanks @zanyrenney I have applied for then job
jayeshmangwani commentedon Sep 12, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: This issue wasn’t directly linked to any PR. It was about platform inconsistency, and we’ve now decided not to strike through the emoji on any platform.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
(_*~😄~*_).Do we agree 👍 or 👎
jayeshmangwani commentedon Sep 12, 2025
Thanks for the reminder, @zanyrenney. Checklist is now complete.
zanyrenney commentedon Sep 12, 2025
offer sent @lorretheboy - please accept for payout!
lorretheboy commentedon Sep 12, 2025
@zanyrenney I have accepted the offer. Thank you
zanyrenney commentedon Sep 12, 2025
Payment summary
$250 paid to @lorretheboy the on Upwork
$250 owed to @jayeshmangwani - please request on NewDot.
garrettmknight commentedon Sep 24, 2025
$250 approved for @jayeshmangwani
lorretheboy commentedon Sep 29, 2025
@garrettmknight @zanyrenney Could you please help check my payment status please?
I see it is still in progress
zanyrenney commentedon Oct 1, 2025
I think you are mistaken @lorretheboy it has been paid, just the job wasn't closed:
zanyrenney commentedon Oct 1, 2025
Job is now closed too.
lorretheboy commentedon Oct 1, 2025
My bad, sorry for that. I was not really familiar with the UI so I thought job is in progress means unpaid