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!
Action Performed:
- Go to any chat on new.expensify.com
- Write and send a message
- Reply to your own message, it will lead you to thread page(good)
- Go back to conversation page and delete the message
- It says "[deleted message] 1 reply" (good), delete that message again.
- It will remove the [deleted message] with the 1 reply temporarily, then go to the thread that is created when you reply to the message
- Go back to the conversation, observe the "[deleted message]" reappeared(bad)
Note that: I am not saying the deleted message is reappearing but the label "[deleted message]" is appearing again after it is deleted
Expected Result:
When the [deleted message] is deleted it should permanently be not shown, or it always shouldn't allow the label [deleted message] to be deleted based on Expensify rule. At least, it should be consistent.
Actual Result:
Now, it is not consistent. When you delete the "[deleted message]" label in the conversation it will delete temporarily, then after you get in to the thread and get back to the conversation you will see it reappearing.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android / native
- Android / Chrome
- iOS / native
- iOS / Safari
- MacOS / Chrome / Safari
- MacOS / Desktop
**Version Number:**1.3.28-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screenshare.-.2023-06-13.11_18_59.AM.1.mp4
Recording.784.mp4
Expensify/Expensify Issue URL:
Issue reported by: @KALLL
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686645553886709
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~019b1d6662d4b09fb2
- Upwork Job ID: 1671865093908606976
- Last Price Increase: 2023-06-22
Activity
melvin-bot commentedon Jun 20, 2023
Triggered auto assignment to @joekaufmanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 20, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hungvu193 commentedon Jun 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - Inconsistent behavior on deleting message that have reply/thread
What is the root cause of that problem?
We are checking condition to show the
Deletebutton inside ContextMenu here:App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 267 to 273 in e6c2704
In this case, after message is deleted, we deleted the
reportActionby updating the optimisticData to this:But in
isMessageDeletedwe are checkingisDeletedParentActioninsideoriginalMessageWhat changes do you think we should make in order to solve the problem?
We should also update the
originalMessage's isDeletedParentAction property to true in ouroptimisticReportActionsdata in hereSomething like this:
What alternative solutions did you explore? (Optional)
We can also use the message prop to identify if the message is deleted or not
joekaufmanexpensify commentedon Jun 20, 2023
i can reproduce this. I think this is related to the above issue. Sense checking next steps here.
joekaufmanexpensify commentedon Jun 21, 2023
Still determining next steps
joekaufmanexpensify commentedon Jun 22, 2023
Was advised on the other issue, that this one was out of scope there. Here is my reproduction of this bug. For expected behavior, once you delete a parent thread message. We should immediately change the comment actions menu to show only "reply in thread" and "mark Unread", which is what is shows once you leave the leave the chat and come back.
2023-06-20_16-43-23.mp4
[-]Chat - Inconsistent behavior on deleting message that have reply/thread[/-][+][$1000] Chat - Inconsistent behavior on deleting message that have reply/thread[/+]melvin-bot commentedon Jun 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~019b1d6662d4b09fb2
melvin-bot commentedon Jun 22, 2023
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 22, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (
External)75 remaining items
joekaufmanexpensify commentedon Jul 24, 2023
@fedirjh Could you please complete your portion of the BZ checklist so we can prep to issue payment here?
fedirjh commentedon Jul 25, 2023
BugZero Checklist:
joekaufmanexpensify commentedon Jul 26, 2023
BZ checklist is now complete, all set to issue payment. @hungvu193 was assigned on 2023-07-14, and the PR was merged on 2023-07-17. The 15th and 16th were weekend days, so the PR was merged in ~1 business day and qualifies for a bonus. So we need to make the following payments:
joekaufmanexpensify commentedon Jul 26, 2023
@hungvu193 $1,500 sent and contract ended!
hungvu193 commentedon Jul 26, 2023
Thank you! 😄
joekaufmanexpensify commentedon Jul 26, 2023
@KALLL It looks like our automation incorrectly sent you two offers for this job in Upwork. I see the first automatically paid you $250 for the reporting bonus here on 2023-07-14. So I've gone ahead and closed out the second with no payment.
Please let us know if you have any questions. Thanks!
joekaufmanexpensify commentedon Jul 26, 2023
@KALLL you should have been sent an escrow refund request for $250 for the duplicate payment, since we ended the contract with no payment. Please confirm here once you've accepted it. Thanks!
I also went ahead and ended the contract for which you received your $250 payment as well!
joekaufmanexpensify commentedon Jul 26, 2023
@fedirjh could you please accept our offer here so we can pay you? Thanks!
fedirjh commentedon Jul 26, 2023
@joekaufmanexpensify Thank you. Accepted
joekaufmanexpensify commentedon Jul 26, 2023
Great, thanks! @fedirjh $1,500 sent and contract ended!
joekaufmanexpensify commentedon Jul 26, 2023
Upwork job closed.
joekaufmanexpensify commentedon Jul 26, 2023
Bug is fixed, BZ checklist complete, and all payment issued. Closing as this is all set. Thanks everyone!