Skip to content

Chat - Difference in format of preview text and sent message. #70166

Closed

Description

@jponikarchuk

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: v9.2.3-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: #66686
Email or phone of affected tester (no customers): Slottwo1 bxvb@gmail.com
Issue reported by: Applause Internal Team
Device used: Redminote 10s android 13
App Component: Chat Report View

Action Performed:

  1. Go to
  2. Open a chat
  3. Paste code from this PR replace the space at the beginning of each line with nbsp #66686
  4. Send the message

Expected Result:

Format of preview text and sent message must be same.

Actual Result:

Difference in format of preview text and sent message.

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

1.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 9, 2025
  2. melvin-bot commented on Sep 9, 2025

    @melvin-bot

    Triggered auto assignment to @dylanexpensify (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. melvin-bot commented on Sep 9, 2025

    @melvin-bot

    Triggered auto assignment to @tylerkaraszewski (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Sep 9, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Sep 9, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. francoisl commented on Sep 9, 2025

    @francoisl
    Contributor

    Going to demote this, looks like the PR was trying to something that already didn't work as expected and doesn't break it any more, so there's little value in reverting.

    cc @nkdengineer @MonilBhavsar @ZhenjaHorbach for a follow-up fix.

  7. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Sep 9, 2025
  8. nkdengineer commented on Sep 10, 2025

    @nkdengineer
    Contributor

    @jponikarchuk Can you tell me what's the difference?

  9. nkdengineer commented on Sep 10, 2025

    @nkdengineer
    Contributor

    Here's the original issue: #62848

  10. MonilBhavsar commented on Sep 10, 2025

    @MonilBhavsar
    Contributor

    @nkdengineer looks like there's an empty line at 0:04 in the preview

  11. nkdengineer commented on Sep 10, 2025

    @nkdengineer
    Contributor

    @MonilBhavsar I see. In the original issue, we're trying to remove an empty line in the sent message, and it worked. The issue now is to make them consistent between preview and sent message, but I see the same behavior on Slack and Github (there's an empty space in preview but no space in sent message). Is it worth to fix? cc @ZhenjaHorbach

  12. jponikarchuk commented on Sep 10, 2025

    @jponikarchuk
    Author

    @nkdengineer Empty line in preview text and sent message. In Original issue empty line is only in sent message.

  13. MonilBhavsar commented on Sep 11, 2025

    @MonilBhavsar
    Contributor

    @nkdengineer looks like behavior is different on slack. We should try to make preview and message consistent
    https://github.com/user-attachments/assets/d6698c08-182f-47e9-94e9-05f87f141d90

  14. nkdengineer commented on Sep 15, 2025

    @nkdengineer
    Contributor

    @MonilBhavsar We decided to follow the same behavior on Slack here, so the behavior on iOS native didn't change.

    Here's the behavior on Slack web, there's a space in preview but no space in sent message

    Screen.Recording.2025-09-15.at.08.49.22.mov
  15. MonilBhavsar commented on Sep 15, 2025

    @MonilBhavsar
    Contributor

    Thanks for linking, I forgot about that.
    Okay, we can leave this for now. closing

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions