Skip to content
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

Loading header appears when the sender deletes message and recipient writes in the thread #36614

Closed
1 of 6 tasks
m-natarajan opened this issue Feb 15, 2024 · 7 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

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:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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
Expensify/Expensify Issue URL:
Issue reported by: @rafecolton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707847433641419

Action Performed:

  1. Open a chat with B as user A
  2. User A sends a message
  3. User B replies in the thread
  4. User A deletes at the same time

Expected Result:

User B should see "deleted message" in the header when in the thread

Actual Result:

Skeleton is loading for ever and also User A is showing as "Hidden" in the LHN

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
screenshot_2024-02-12_at_5 49 31___pm__1__480
screenshot_2024-02-12_at_5 48 21___pm_720

View all open jobs on GitHub

@m-natarajan m-natarajan added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 15, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@trjExpensify
Copy link
Contributor

I also can't repro this. I stayed on the page and it updated to [Deleted message] in the header and the parent comment previewed:

image

@trjExpensify
Copy link
Contributor

Discussing in thread.

@MonilBhavsar
Copy link
Contributor

Self assigning as I am working on very similar issue #22186 and came across this bug while fixing the former. I had a brief look and will handle this

https://expensify.slack.com/archives/C049HHMV9SM/p1708085284757179?thread_ts=1707847433.641419&cid=C049HHMV9SM

@MonilBhavsar MonilBhavsar self-assigned this Feb 16, 2024
@MonilBhavsar MonilBhavsar removed the Needs Reproduction Reproducible steps needed label Feb 16, 2024
@MonilBhavsar
Copy link
Contributor

The error comes from this logic

App/src/libs/ReportUtils.ts

Lines 2518 to 2521 in 8907eef

if (isAdminRoom(report) || isUserCreatedPolicyRoom(report)) {
return getAdminRoomInvitedParticipants(parentReportAction, parentReportActionMessage);
}
return parentReportActionMessage || Localize.translateLocal('parentReportAction.deletedMessage');

For a parent message deleted in #admins or user created room, we enter the condition and return title as empty string
and return early and do not reach the return statement below that returns [Delete Message]

@trjExpensify
Copy link
Contributor

Nice, so @MonilBhavsar.. confirming this hit prod yesterday and we don't have anyone to pay out for the review, so we can go ahead and close this?

@MonilBhavsar
Copy link
Contributor

Yes! Let's close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

3 participants