-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2023-09-27] [$500] Desktop - Unread messages get marked as read without me visiting the chats #26824
Comments
Triggered auto assignment to @sophiepintoraetz ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~0100b1d4dc36ebfcc0 |
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
Given that there are multiple reports, I'm going to go ahead and put this one out there. |
cc @danieldoglas - as Rocio's theory is that this is coming from #vip-reliable-updates - do you agree? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Desktop - Unread messages get marked as read without me visiting the chats. What is the root cause of that problem?We have the logic to call App/src/pages/home/ReportScreen.js Lines 245 to 253 in 1223e1e
Although, we checked What changes do you think we should make in order to solve the problem?Solution 1: we can use useRef for
Solution 2: Add additional logic to check
Or we can wrap it to an external function and call it in both places. ResultScreen.Recording.2023-09-06.at.14.45.22.mov |
@sophiepintoraetz add my comment here, but I don't think it's related to #reliable-updates. And thought the symptoms are similar, I think we're seeing 2 different issues there. |
@kbecciv @sophiepintoraetz @tienifr I wasn't able to reproduce it (sending messages from ios app to the desktop app and messages in LHN are not marked as read)... According to this thread on Slack I guess this occurs only in some special circumstances, am I right? What are those circumstances? |
Just to inform: I'll be OOO on Thursday and Friday (7-8 September). |
ProposalPlease re-state the problem that we are trying to solve in this issue.Desktop: Unread message gets marked as read , without visiting the opening the message. What is the root cause of that problem?In the below , It is not checked whether App/src/components/LHNOptionsList/OptionRowLHN.js Lines 105 to 109 in 57b7606
What changes do you think we should make in order to solve the problem?We should update the line by adding const shouldShowGreenDotIndicator =
!hasBrickError &&
(optionItem.isUnreadWithMention || optionItem.isUnread ||
ReportUtils.isWaitingForIOUActionFromCurrentUser(optionItem) ||
(optionItem.isTaskReport && optionItem.isTaskAssignee && !optionItem.isCompletedTaskReport && !optionItem.isArchivedRoom)); what alternative solutions did you explore?(Optional)N/A |
@burczu you can open the desktop app and web at the same time, and send the message from web to desktop (pls make sure the desktop app is invisible when sending message from web) |
@tienifr - are you able to reproduce this? |
Screen.Recording.2023-09-12.at.09.43.12.mp4@sophiepintoraetz @burczu I still can reproduce |
Ok, I've finally reproduced the issue successfully! I didn't notice at first that it is marked as read after some short period of time. Also reviewed proposals and the solution from @tienifr seem to be correct and I think we could proceed with it. Solution proposed by @davewish is, I think incorrect - it also fixes the issue but it adds the green dot next to the unread message which shouldn't happen. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @davewish You have been assigned to this job! |
please , I need clarification , my proposal is reviewed as incorrect by @burczu and job assigned to me . then I will proceed with the job |
@cristipaval I got C+ reviewed of @burczu so I think you assigned wrong contributor |
@davewish I believe there's a mistake of @cristipaval. Let's wait for his response. Thanks |
yeah @cristipaval - I've recommended solution from @tienifr |
Yoo I scrolled up and bottom this issue looking at the proposals but in the end, I messed it up. Sorry all! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@tienifr, you should be all set now! 🚀 |
🎯 ⚡️ Woah @burczu / @tienifr, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-27. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue: As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@sophiepintoraetz I'm not eligible for payment as I'm contractor from Callstack. |
Oh thanks for confirming, then we are super done! |
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:
Expected Result:
Unread messages displayed in LHN
Actual Result:
Unread messages get marked as read without me visiting the chats
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.64.0
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
n/a
Expensify/Expensify Issue URL:
Issue reported by: @rafecolton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693523157400069
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: