-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$500] Web - The group is deleted when there are no messages or the first parent message deleted #27295
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01ad723399ebef5bd6 |
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @zanyrenney ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
Proposal by: @namhihi237 ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?We are checking whether the report is displayed on LHN here: Lines 2847 to 2850 in 6188d7b
We are checking the isEmptyChat report here Lines 2818 to 2820 in 6188d7b
Here, if the report has only 1 message and that message has a thread. After deleting the parent message, the report still displays the message [Deleted message] and there is a thread in this message. But we are only checking lastVisibleMessage so the miss case message is deleted but the thread remains.
What changes do you think we should make in order to solve the problem?We should update the const lastVisibleMessage = ReportActionsUtils.getLastVisibleMessage(report.reportID);
const reportActions = ReportActionsUtils.getAllReportActions(report.reportID);
let isEmptyChat = false;
if (!lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey) {
const has thread = _.some(reportActions, (reportAction) => reportAction.childCommenterCount > 0);
isEmptyChat = !hasThread
} Result: What alternative solutions did you explore? (Optional)N/A |
The same root cause with #26791. |
Maybe relate to #19722 |
Will #27410 fix this issue then @dukenv0307? |
Yes. |
@zanyrenney There is known issue (more info here) where it is double-assigning, so removing your assignment 👍 |
@CortneyOfstad, @Ollyws Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Ollyws since this will be corrected under the other PR, we're free to close this then — correct? |
Yeah we're good to close it. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Group chat remains on LHN when there are no messages or messages are deleted.
Actual Result:
Group chat disappeared on LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.68.13
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
Screen.Recording.2023-09-10.at.11.19.40.1.mov
Recording.4423.mp4
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694319570718779
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: