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:
- Navigate to a thread conversation with several messages
- Mark a message as unread
Expected Result:
Green line "new" should be appeared. Verify the unread marked is displayed in the conversation history
Actual Result:
Greenline line doesn't appear after the mark of a message as unread
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.56-14
Reproducible in staging?: Yes
Reproducible in production?: No
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
Bug6173971_RPReplay_Final1692745969.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Activity
OSBotify commentedon Aug 22, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Aug 22, 2023
Triggered auto assignment to @marcaaron (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.marcaaron commentedon Aug 23, 2023
Could this be related? @MonilBhavsar @gedu #18637
marcaaron commentedon Aug 23, 2023
Gonna check to see if relate.
marcaaron commentedon Aug 23, 2023
Hmm ... reverted that PR locally and it's still broken
marcaaron commentedon Aug 23, 2023
Hmm this is not related to messages being threaded. It seems like the unread won't work with any message. Doesn't matter if it is a thread.
[-]Threaded message - Greenline line doesn't appear after the mark of a message as unread[/-][+]Greenline line doesn't appear after the mark of a message as unread (iOS)[/+]marcaaron commentedon Aug 23, 2023
Ok so after a somewhat lengthy investigation... I have discovered that when we mark a report as "unread" it sets the
lastReadTimeto be later than than the last visible created. But only on iOS.Basically, this logic is not working correctly:
App/src/libs/DateUtils.js
Lines 270 to 279 in 79ea923
This is the offending PR -> #24446
I am guessing that date fns works differently in react-native or something, but not sure how.
Confirmed by rolling back
mainto right before it was merged.marcaaron commentedon Aug 23, 2023
@allroundexperts @mountiny adding you guys in here in case you have ideas on how to fix this. I gotta jet.
2 remaining items
mountiny commentedon Aug 23, 2023
@waterim I believe you have found the root cause, can you create a PR with the fix?
waterim commentedon Aug 23, 2023
@mountiny My PR is ready for review
mountiny commentedon Aug 23, 2023
Confirmed this works on ios in staging now, closing
[-]Greenline line doesn't appear after the mark of a message as unread (iOS)[/-][+][HOLD for payment 2023-09-04] Greenline line doesn't appear after the mark of a message as unread (iOS)[/+]melvin-bot commentedon Aug 28, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 28, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.57-6 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-04. 🎊
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: