Skip to content

Commit a05c59a

Browse files
MelvinBotPujan92
andcommitted
Fix unread marker flash at chat beginning after sign-in
Keep the skeleton visible during the gap between app load completing and the first openReport response arriving, preventing the unread marker from rendering with stale lastReadTime data. Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
1 parent 69a3bdc commit a05c59a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/inbox/report/ReportActionsView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ function ReportActionsView({reportID, onLayout}: ReportActionsViewProps) {
368368
const shouldShowSkeletonForInitialLoad = isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline;
369369

370370
// Show skeleton while the app is loading and we're online
371-
const shouldShowSkeletonForAppLoad = isLoadingApp && !isOffline;
371+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
372+
const shouldShowSkeletonForAppLoad = (isLoadingApp || (isLoadingInitialReportActions && !hasOnceLoadedReportActions)) && !isOffline;
372373

373374
// Show skeleton for the Concierge side panel until report data has been
374375
// loaded at least once. Before the first openReport response, hasOlderActions

0 commit comments

Comments
 (0)