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
Chat - Unread marker moves to first message sent offline when returning online #47481
Version Number: 9.0.20.6 Reproducible in staging?: Y Reproducible in production?: N
Issue was found when executing this PR #47393 Issue reported by: Applause Internal Team
Please re-state the problem that we are trying to solve in this issue.
The unread marker moves up to the first message that was sent while offline
What is the root cause of that problem?
When we mark as unread an action offline, unreadMarkerTime is assigned as the client's created time of the action. Then when we online, BE returns the db created time of the action that is more than the client's created time. So the unread marker is moved up.
What changes do you think we should make in order to solve the problem?
We should update shouldDisplayNewMarker function to check if we already have an unread marker action we only check the reportActionID is matched with unreadMarkerReportActionID or not
if (!unreadMarkerReportActionID) {
// the current logic
} else {
return reportAction.reportActionID === unreadMarkerReportActionID
}
👋 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.
I implemented all that we discussed above, but the exact OG issue described here is not fixed due to this.
It does improve on this and fixes other slightly different bug that you can see here in test 2.
Will wait to see if Utkersh Rajvenshi (don't have their GH handle) has any ideas on how to solve this.
Activity
melvin-bot commentedon Aug 15, 2024
Triggered auto assignment to @dylanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.IuliiaHerets commentedon Aug 15, 2024
We think that this bug might be related to #vip-vsb
nkdengineer commentedon Aug 15, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The unread marker moves up to the first message that was sent while offline
What is the root cause of that problem?
When we mark as unread an action offline,
unreadMarkerTimeis assigned as the client's created time of the action. Then when we online, BE returns the db created time of the action that is more than the client's created time. So the unread marker is moved up.App/src/pages/home/report/ReportActionsList.tsx
Line 213 in 57ef25c
What changes do you think we should make in order to solve the problem?
We should update
shouldDisplayNewMarkerfunction to check if we already have an unread marker action we only check thereportActionIDis matched withunreadMarkerReportActionIDor notApp/src/pages/home/report/ReportActionsList.tsx
Line 225 in 57ef25c
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Aug 15, 2024
Triggered auto assignment to @iwiznia (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Aug 15, 2024
👋 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:
63 remaining items
johncschuster commentedon Feb 4, 2025
Still
lowpriorityjohncschuster commentedon Mar 11, 2025
Same
iwiznia commentedon Mar 20, 2025
I implemented all that we discussed above, but the exact OG issue described here is not fixed due to this.
It does improve on this and fixes other slightly different bug that you can see here in
test 2.Will wait to see if
Utkersh Rajvenshi(don't have their GH handle) has any ideas on how to solve this.iwiznia commentedon Mar 26, 2025
ok PRs are merged, the OG issue is not yet solved, but @utkershrajvenshi said he will take a look
Julesssss commentedon Mar 31, 2025
We have a new deploy blocker where the unread marker shows above your own comments and it seems possibly related.
Reverting the Change MarkAsUnread to pass reportActionID instead of time App changes didn't resolve the issue and I'm currently unable to reproduce locally 😕
Julesssss commentedon Apr 1, 2025
Resolved here.