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
[$250] Expense - Preview in main chat briefly disappears after renaming report and deleting expense #44607
changed the title [-]Expense - Preview in main chat briefly disappears after renaming report and deleting expense[/-][+][$250] Expense - Preview in main chat briefly disappears after renaming report and deleting expense[/+]on Jul 1, 2024
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Activity
melvin-bot commentedon Jun 28, 2024
Triggered auto assignment to @johncschuster (
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.izarutskaya commentedon Jun 28, 2024
We think this issue might be related to the #collect project.
bernhardoj commentedon Jun 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Deleting a transaction removes the expense report if the last action in the expense report is renamed action.
What is the root cause of that problem?
The expense report will be deleted if the last message text of the expense report is empty.
App/src/libs/actions/IOU.ts
Lines 5313 to 5315 in cb8fce8
We get the last message from the HTML of the message here (getTextFromHtml).
App/src/libs/ReportActionsUtils.ts
Lines 765 to 771 in cb8fce8
However, the renamed action doesn't have HTML.

What changes do you think we should make in order to solve the problem?
Instead of using
getTextFromHtml, we can usegetReportActionMessageText.getReportActionMessageTextwill get from the HTML but fallback to text if it doesn't exist.App/src/libs/ReportActionsUtils.ts
Lines 1353 to 1360 in 53d08c1
So the iou report last message won't be empty and the expense report won't be deleted.
melvin-bot commentedon Jul 1, 2024
@johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-]Expense - Preview in main chat briefly disappears after renaming report and deleting expense[/-][+][$250] Expense - Preview in main chat briefly disappears after renaming report and deleting expense[/+]melvin-bot commentedon Jul 1, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01d610c7726bd86731
melvin-bot commentedon Jul 1, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)22 remaining items
melvin-bot commentedon Aug 21, 2024
This issue has not been updated in over 15 days. @tylerkaraszewski, @johncschuster, @sobitneupane, @bernhardoj eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
sobitneupane commentedon Aug 22, 2024
@johncschuster This is ready for payment. PR was developed a month back. #45365 (comment)
sobitneupane commentedon Sep 2, 2024
Bump @johncschuster
bernhardoj commentedon Sep 4, 2024
Payment pending. Requested in ND.
johncschuster commentedon Sep 9, 2024
Sorry for the delay! Working on this now.
johncschuster commentedon Sep 9, 2024
Payment Summary:
Contributor: @bernhardoj owed $250 via NewDot
Contributor+: @sobitneupane owed $250 via NewDot
JmillsExpensify commentedon Sep 9, 2024
$250 approved for @bernhardoj
johncschuster commentedon Sep 10, 2024
@sobitneupane, do we need any regression test steps? If so, can you provide them?
sobitneupane commentedon Sep 12, 2024
Regression Test Proposal
Do we agree 👍 or 👎
johncschuster commentedon Sep 20, 2024
Thanks, @sobitneupane! Please request payment!
garrettmknight commentedon Oct 23, 2024
$250 approved for @sobitneupane