You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-09-04] Greenline line doesn't appear after the mark of a message as unread (iOS) #25737
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
changed the title [-]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)[/+]on Aug 23, 2023
Ok so after a somewhat lengthy investigation... I have discovered that when we mark a report as "unread" it sets the lastReadTime to be later than than the last visible created. But only on iOS.
changed the title [-]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)[/+]on 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.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
@allroundexpertsdoes not require payment (Eligible for Manual Requests)
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: