-
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
[$1000] Chat - 'New message' pill appears after deleting unread message #22174
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The 'New message' pill remains despite an unread message being deleted. What is the root cause of that problem?When deleting a message, App/src/pages/home/report/ReportActionsView.js Lines 208 to 225 in 2dbc1e4
However, when clicking the 'New messages' pill, the report is marked as read, causing the App/src/pages/home/report/ReportActionsView.js Lines 272 to 275 in 2dbc1e4
As the deletion comes after clicking the pill, the if-statement in the The result is that the 'New messages' pill persists, which is the problem we are observing. What changes do you think we should make in order to solve the problem?In the
What alternative solutions did you explore? (Optional)Alternatively, we can add App/src/pages/home/report/ReportActionsView.js Lines 326 to 329 in 2dbc1e4
App/src/pages/home/report/ReportActionsView.js Lines 272 to 275 in 2dbc1e4
A second alternative is to detect a discrepancy between Edit: Updated proposal based on refactored component |
This reported issue has the same root cause as this which was found while testing this PR. We were thinking and decided that the issue is out of scope of that PR. Here are my findings:
Right now, New Markers Issues are on hold as I've found out from this comment. Lately I've seen quite some issues arising from the same root cause, which is that the New Markers do not get removed when report becomes read. Maybe we want to make an exception to fix them all with 1 Proposal, or we'll keep them all on hold until the refactor is done. |
Reproduced on Chrome/ Mac |
Job added to Upwork: https://www.upwork.com/jobs/~01c35abc455d11baf9 |
Current assignee @anmurali is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
@anmurali, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@0xmiroslav - do you agree with @DanutGavrus? If yes, I will add the held to the title and degrade this to a weekly while we wait. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@0xmiroslav bump |
@samh-nl @DanutGavrus ReportActionsView is now refactored to function component. Please update your proposals accordingly. |
@0xmiroslav
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - 'New message' pill appears after deleting unread message. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?We should add this logic: useEffect(() => {
// If the report automatically became read, remove the *New* green marker and the *New Messages* notification at scroll.
if (!ReportUtils.isUnread(props.report) && newMarkerReportActionID != '') {
setNewMarkerReportActionID('');
}
}, [props.report, newMarkerReportActionID]); |
To be honest I'm not sure which is the expected behavior. @MonilBhavsar I know you've spent much more time than me diving into the logic and expectations of the unread marker, can you weigh in on the expected behavior question here please: #22174 (comment) |
Okay thanks so much @MonilBhavsar! |
Current assignee @situchan is eligible for the External assigner, not assigning anyone new. |
Still on hold |
Same |
Still holding |
This issue should be fixed! We can retest and most probably close this |
Thanks Monil! Retested and confirmed it's fixed: retest-22174.mov |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing PR #21557
Action Performed:
Expected Result:
'New message' pill will not appear as the unread message is deleted
Actual Result:
'New message' pill still appears although the unread message is deleted
If the 'new message' pill is not clicked, this issue will not occur.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.36.2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6115722_bandicam_2023-07-04_17-00-30-382.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: