Skip to content

[Due for payment 2025-09-12] [$250] inconsistent emoji format for markdown #63833

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Open any chat
  2. 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 )

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6855442_1749550247789.screen_recording_20250609_204935_chrome.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021932429547807925863
  • Upwork Job ID: 1932429547807925863
  • Last Price Increase: 2025-07-29
Issue OwnerCurrent Issue Owner: @zanyrenney

Activity

  1. added
    Daily
    Bug
    on Jun 10, 2025
  2. melvin-bot commented on Jun 10, 2025

    @melvin-bot

    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.

  3. dmkt9 commented on Jun 10, 2025

    @dmkt9
    Contributor

    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 style

    What changes do you think we should make in order to solve the problem?

    1. In 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
    case 'emoji':
        Object.assign(node.style, {
        ...markdownStyle.emoji,
        verticalAlign: 'middle',
        fontStyle: 'normal', // remove italic
        textDecoration: 'none', // remove strikethrough
        display: 'inline-block',
        });
        break;
    1. We can apply the same styling to the emoji in our message component at here:

      const emojiDefaultStyles: EmojiDefaultStyles = {

    2. To avoid the difference when selecting, we can adjust verticalAlign to top, or not if we want to be consistent with the input:

    Image

    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.

  4. bernhardoj commented on Jun 10, 2025

    @bernhardoj
    Contributor

    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.
    image

    Compared to when using inline.
    image

    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.

    const emojiDefaultStyles: EmojiDefaultStyles = {
    ...FontUtils.fontFamily.platform.EXP_NEUE,
    ...display.dInline,
    };

    const emojiDefaultStyles: EmojiDefaultStyles = {
        ...FontUtils.fontFamily.platform.EXP_NEUE,
        ...display.dInlineFlex,
        textDecorationLine: 'none',
    };
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    N/A

  5. zanyrenney commented on Jun 10, 2025

    @zanyrenney
    Contributor

    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.

  6. added
    External
    on Jun 10, 2025
  7. changed the title [-]inconsistent emoji format for markdown[/-] [+][$250] inconsistent emoji format for markdown[/+] on Jun 10, 2025
  8. melvin-bot commented on Jun 10, 2025

    @melvin-bot
  9. added
    Help Wanted
    on Jun 10, 2025
  10. melvin-bot commented on Jun 10, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (External)

  11. zanyrenney commented on Jun 10, 2025

    @zanyrenney
    Contributor

    Already have the proposal from @bernhardoj if you can please review @jayeshmangwani

  12. jayeshmangwani commented on Jun 11, 2025

    @jayeshmangwani
    Contributor

    @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.

  13. 115 remaining items

  14. lorretheboy commented on Sep 12, 2025

    @lorretheboy
    Contributor

    Thanks @zanyrenney I have applied for then job

  15. jayeshmangwani commented on Sep 12, 2025

    @jayeshmangwani
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 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

    1. Open the app and go to any chat.
    2. Type an emoji wrapped in markdown: (_*~😄~*_).
    3. Verify that the emoji is not formatted with strikethrough markdown.

    Do we agree 👍 or 👎

  16. jayeshmangwani commented on Sep 12, 2025

    @jayeshmangwani
    Contributor

    Thanks for the reminder, @zanyrenney. Checklist is now complete.

  17. zanyrenney commented on Sep 12, 2025

    @zanyrenney
    Contributor

    offer sent @lorretheboy - please accept for payout!

  18. lorretheboy commented on Sep 12, 2025

    @lorretheboy
    Contributor

    @zanyrenney I have accepted the offer. Thank you

  19. zanyrenney commented on Sep 12, 2025

    @zanyrenney
    Contributor

    Payment summary

    $250 paid to @lorretheboy the on Upwork
    $250 owed to @jayeshmangwani - please request on NewDot.

  20. garrettmknight commented on Sep 24, 2025

    @garrettmknight
    Contributor

    $250 approved for @jayeshmangwani

  21. lorretheboy commented on Sep 29, 2025

    @lorretheboy
    Contributor

    @garrettmknight @zanyrenney Could you please help check my payment status please?

    I see it is still in progress

    Image
  22. zanyrenney commented on Oct 1, 2025

    @zanyrenney
    Contributor

    I think you are mistaken @lorretheboy it has been paid, just the job wasn't closed:

    Image
  23. zanyrenney commented on Oct 1, 2025

    @zanyrenney
    Contributor

    Job is now closed too.

  24. lorretheboy commented on Oct 1, 2025

    @lorretheboy
    Contributor

    My bad, sorry for that. I was not really familiar with the UI so I thought job is in progress means unpaid

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions