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
@@ -115,11 +115,14 @@ function useMarkAsRead({reportID, report, transactionThreadReport, sortedVisible
115
115
}
116
116
117
117
readActionSkippedRef.current=true;
118
-
// This effect should only run when the newest visible action changes, otherwise every action/report object update can prematurely consume unread state.
@@ -153,8 +156,11 @@ function useMarkAsRead({reportID, report, transactionThreadReport, sortedVisible
153
156
154
157
readNewestAction(reportID,true);
155
158
userActiveSince.current=DateUtils.getDBTime();
156
-
// This effect should only run when app visibility/focus changes; the helper reads the latest report/action values without making every action update mark the report as read.
@@ -243,9 +243,12 @@ function useReportActionsScroll({
243
243
},
244
244
waitForUpcomingTransition: true,
245
245
});
246
-
return()=>handle.cancel();
247
-
// The initial scroll-to-bottom must be scheduled exactly once, on mount; re-running it as deps change would yank the user back down while they read history.
// The initial scroll-to-bottom must be scheduled exactly once, on mount; re-running it as deps change would yank the user back down while they read history.
249
+
useEffect(()=>{
250
+
consthandle=scheduleInitialScrollToBottom();
251
+
return()=>handle?.cancel();
249
252
},[]);
250
253
251
254
// Fixes Safari-specific issue where the whisper option is not highlighted correctly on hover after adding new transaction.
@@ -281,18 +284,18 @@ function useReportActionsScroll({
// Intentionally keyed to lastAction (not the error object) so the scroll re-evaluates once per new action; the reportActionID comparison above guards actual re-runs.
0 commit comments