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.95-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: #68415
Email or phone of affected tester (no customers): sdjoisjosijsdoj@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests
Action Performed:
- Go to staging.new.expensify.com
- Go to workspace chat.
- Create an expense to workspace chat.
- Open the expense report.
- Send a user mention who is not a member of the expense report.
- Create another expense in the expense report.
- Go offline.
- Open the transaction thread of the second expense from Step 6.
- Click More > Delete.
- Delete the expense.
- Right click on the message containing user mention.
→ The context menu is incomplete as options such as React, Edit comment, Reply in thread and Delete comment are missing. - Click Do nothing or Invite them on the whisper message.
→ The options on the whisper message are not responsive. - Go online.
- Right click on the message containing user mention.
→ The context menu is now complete with React, Edit comment, Reply in thread and Delete comment option. - Click Do nothing or Invite member on the whisper message.
→ The options on the whisper message are still not responsive.
Expected Result:
In Step 11, the context menu should have the complete options.
In Step 12, the whisper message should dismiss after clicking on Do nothing or Invite them.
Actual Result:
In Step 11, the context menu is missing options such as React, Edit comment, Reply in thread and Delete comment.
In Step 12, the whisper message does not dismiss after clicking on Do nothing or Invite them.
After returning online,
In Step 14, the context menu is now complete with React, Edit comment, Reply in thread and Delete comment option.
In Step 15, the options on the whisper message are still not responsive.
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
Bug6917719_1755238099928.20250815_135858.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021958117484554000745
- Upwork Job ID: 1958117484554000745
- Last Price Increase: 2025-09-17
Issue Owner
Current Issue Owner: @jasperhuanggMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Aug 15, 2025
Triggered auto assignment to @greg-schroeder (
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.melvin-bot commentedon Aug 15, 2025
📣 @u-2234! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
u-2234 commentedon Aug 15, 2025
Contributor details
Your Expensify account email: sirajkhatti14@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~018a3960cdaa518f4e
melvin-bot commentedon Aug 15, 2025
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
mkzie2 commentedon Aug 15, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 11, the context menu is missing options such as React, Edit comment, Reply in thread and Delete comment.
What is the root cause of that problem?
In offline, we can see that one expense report is rendered after we delete the second expense. The reason is that we passed
reportTransactionIDs, which contains the list of visible transactionIDs of the expense reportApp/src/pages/home/ReportScreen.tsx
Line 308 in 4d29406
So the pending delete iou action can be filtered out here, and this function returns the iou action of the first expense
App/src/libs/ReportActionsUtils.ts
Lines 1298 to 1300 in 4d29406
But when we get the
originalReportIDof the action, we don't passreportTransactionIDsparameter togetOneTransactionThreadReportIDfunction which causes this function returnsundefinedas the pending delete iou action is not filtered out.App/src/pages/home/report/ReportActionItem.tsx
Line 88 in 4d29406
App/src/libs/ReportUtils.ts
Lines 9037 to 9057 in 4d29406
What changes do you think we should make in order to solve the problem?
Since we render the one expense report view in offline now, there's no reason to keep the pending delete iou action in offline here
App/src/libs/ReportActionsUtils.ts
Lines 1298 to 1315 in 4d29406
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)
We can get the
reportTransactionIDsfromtransactionsand pass this parameter fromgetOriginalReportIDtogetOneTransactionThreadReportActionApp/src/pages/home/report/ReportActionItem.tsx
Line 88 in 4d29406
App/src/libs/ReportUtils.ts
Lines 9037 to 9057 in 4d29406
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.
melvin-bot commentedon Aug 20, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021958117484554000745
[-]Expense- Incomplete message context menu & unresponsive whisper after deleting expense offline[/-][+][$250] Expense- Incomplete message context menu & unresponsive whisper after deleting expense offline[/+]melvin-bot commentedon Aug 20, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)63 remaining items
jasperhuangg commentedon Oct 9, 2025
@mkzie2 I think that's fine, it's because the report action exists in the transaction thread and not the expense report, and they it has a different reportID as a result. The link should still take you to the report action, correct?
mkzie2 commentedon Oct 10, 2025
@jasperhuangg This will cause the problem when we reply in thread here. Because the originalReportID is wrong, reply in thread will create the report with the wrong data. We should pass
originalReportIDfromBaseReportActionContextMenutoContextMenuActionsinstead of calculating it inconsistently here.App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Line 302 in 29c4593
mvtglobally commentedon Oct 11, 2025
Issue not reproducible during KI retests. (7th week)
melvin-bot commentedon Oct 13, 2025
@jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
jasperhuangg commentedon Oct 14, 2025
@mkzie2 Can you clarify what you mean by this:
jasperhuangg commentedon Oct 17, 2025
@mkzie2 bump
mkzie2 commentedon Oct 23, 2025
I can't reproduce this anymore.