Repository navigation
Description
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.1.73-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: https://expensify.testrail.io/index.php?/tests/view/6408538&group_by=cases:section_id&group_order=asc&group_id=309128
Email or phone of affected tester (no customers): ibellicotest+1199@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome (mWeb - Hybrid App) / Windows 10 - Chrome
App Component: Left Hand Navigation (LHN)
Action Performed:
Prerequisite: Account has at least one workspace created.
- Open the Expensify app.
- Open any workspace chat.
- Submit two manual expenses to it.
- Open the report of the just created expenses.
- Long tap on any of the expenses and select it.
- Hold the selected expense.
- Add any reason to hold it.
- Select the same expense and remove hold.
- Navigate to "Inbox"
- Note that the preview of the report, shows a "Unheld this expense" message.
- Open report and return to inbox.
- Note that now, report preview shows the last message sent before the expense was unheld.
Expected Result:
System message shown on LHN after unholding an expense, shouldn´t disappear from preview after opening report.
Actual Result:
System message generated after unholding an expense, disappears from report preview on LHN, after opening the report. After report is opened, preview shows the last message sent before unholding the expense.
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
bandicam.2025-07-01.07-47-50-616.1.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021940426879587963556
- Upwork Job ID: 1940426879587963556
- Last Price Increase: 2025-08-20
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Jul 1, 2025
Triggered auto assignment to @joekaufmanexpensify (
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.nyomanjyotisa commentedon Jul 1, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN - "Unheld this expense" disappears from report preview on LHN after opening it
What is the root cause of that problem?
Currently we don't have check for
HOLDandUNHOLDactions ingetLastMessageTextForReportApp/src/libs/OptionsListUtils.ts
Line 720 in 94658ba
What changes do you think we should make in order to solve the problem?
Add handling for
HOLD/UNHOLDactions ingetLastMessageTextForReporthereWe should fix the actor determination here as well to address the issue based on this comment
App/src/libs/SidebarUtils.ts
Line 627 in 94658ba
We should prioritize getting the actor ID from the action itself rather than the report last actor, which can be incorrect for system messages
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Or just add handling for
UNHOLDonlynabi-ebrahimi commentedon Jul 1, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN - "Unheld this expense" disappears from report preview on LHN after opening it.
What is the root cause of that problem?
In the OpenReport API call result, the lastMessageText is the last message. In the chat.
We never check the hold and unhold actions to show the last action message in
getLastMessageTextForReportfunctionApp/src/libs/OptionsListUtils.ts
Lines 720 to 879 in 94658ba
and return the
report.lastMessageTextApp/src/libs/OptionsListUtils.ts
Lines 874 to 879 in 94658ba
What changes do you think we should make in order to solve the problem?
We should consider Hold and unHold actions When get last message text for sidebar. we need to add this code snippet in
getLastMessageTextForReportfunctionWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
We can only add Unhold in
getLastMessageTextForReportfunctionjoekaufmanexpensify commentedon Jul 1, 2025
@jponikarchuk I'm having trouble following what the bug is here. I don't think the video above is correct. Could you add the correct video for this bug to the issue?
joekaufmanexpensify commentedon Jul 2, 2025
I was able to figure it out and can reproduce 👍
2025-07-02_11-04-42.mp4
joekaufmanexpensify commentedon Jul 2, 2025
I replaced the video in OP so it is more clear.
joekaufmanexpensify commentedon Jul 2, 2025
This is a pretty minor bug, but it is incorrect, so we can fix it.
[-]LHN - "Unheld this expense" disappears from report preview on LHN after opening it.[/-][+][$250] LHN - "Unheld this expense" disappears from report preview on LHN after opening it.[/+]melvin-bot commentedon Jul 2, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021940426879587963556
60 remaining items
joekaufmanexpensify commentedon Aug 18, 2025
Sounds good!
joekaufmanexpensify commentedon Aug 18, 2025
@nabi-ebrahimi have you had a chance to look into this?
nabi-ebrahimi commentedon Aug 18, 2025
@joekaufmanexpensify Yes, but I can not hold expenses on step 6.
joekaufmanexpensify commentedon Aug 19, 2025
@nabi-ebrahimi Could you share more about what you mean? The hold button is not working for you?
nabi-ebrahimi commentedon Aug 19, 2025
@joekaufmanexpensify I asked in Slack, but got no answer.
https://expensify.slack.com/archives/C01GTK53T8Q/p1755526057432109
nabi-ebrahimi commentedon Aug 19, 2025
@joekaufmanexpensify I provided a video record which shows what I mean.
joekaufmanexpensify commentedon Aug 19, 2025
Responded there 👍
nabi-ebrahimi commentedon Aug 20, 2025
@joekaufmanexpensify thanks, I did further investigation, the original issue is not reproducible in the latest main.
Screen.Recording.1404-05-29.at.10.25.38.AM.mp4
Although I think there is another issue that shows
unheld this money requestinstead ofunheld this expense. This issue can be fixed by considering the hold and unhold actions ingetLastMessageTextForReport.@sobitneupane, I am available to do further investigation if needed.
melvin-bot commentedon Aug 20, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
joekaufmanexpensify commentedon Aug 21, 2025
I am only seeing
unheld this expensethis expense personally. Regardless, that feels like a different issue.joekaufmanexpensify commentedon Aug 21, 2025
Yeah, I also can't reproduce anymore, so going to close this out. Thanks everyone!