Skip to content
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a296f01
Revert "[CP staging] Revert "fix: Two greyed-out RBRs in Inbox""
nkdengineer Nov 21, 2025
bc27f80
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Nov 23, 2025
85c9483
fix report doesn't load
nkdengineer Nov 23, 2025
458d171
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Nov 26, 2025
4dc24a0
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Dec 2, 2025
4333d94
create a ref to prevent calling twice
nkdengineer Dec 2, 2025
20cc9a0
resolve conflict
nkdengineer Dec 4, 2025
72a65af
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Dec 9, 2025
8030a39
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Dec 18, 2025
ecaf744
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Dec 30, 2025
52f49b4
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Jan 6, 2026
6f10ef2
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Jan 12, 2026
e878bd0
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Jan 21, 2026
38d029e
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Jan 29, 2026
d46882d
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Jan 29, 2026
1811b8a
resolve conflict
nkdengineer Feb 11, 2026
1e571a0
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Feb 15, 2026
5385e9f
remove unnecessary ref
nkdengineer Feb 15, 2026
142c503
Merge branch 'main' into revert-75598-revert-74646-fix/fix/74126
nkdengineer Mar 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions src/pages/inbox/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,6 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr
return;
}

// If there is one transaction thread that has not yet been created, we should create it.
if (transactionThreadReportID === CONST.FAKE_REPORT_ID && !transactionThreadReport) {
createOneTransactionThreadReport();
return;
}

// When a user goes through onboarding for the first time, various tasks are created for chatting with Concierge.
// If this function is called too early (while the application is still loading), we will not have information about policies,
// which means we will not be able to obtain the correct link for one of the tasks.
Expand All @@ -561,20 +555,7 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr
}

openReport(reportIDFromRoute, introSelected, reportActionIDFromRoute);
}, [
reportMetadata.isOptimisticReport,
report,
isOffline,
transactionThreadReportID,
transactionThreadReport,
reportIDFromRoute,
reportActionIDFromRoute,
createOneTransactionThreadReport,
isLoadingApp,
introSelected,
isOnboardingCompleted,
isInviteOnboardingComplete,
]);
}, [reportMetadata.isOptimisticReport, report, isOffline, isLoadingApp, introSelected, isOnboardingCompleted, isInviteOnboardingComplete, reportIDFromRoute, reportActionIDFromRoute]);

useEffect(() => {
if (!isAnonymousUser) {
Expand All @@ -583,6 +564,15 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr
prevIsAnonymousUser.current = true;
}, [isAnonymousUser]);

useEffect(() => {
if (transactionThreadReportID !== CONST.FAKE_REPORT_ID || transactionThreadReport?.reportID || (!reportMetadata.hasOnceLoadedReportActions && !reportMetadata?.isOptimisticReport)) {
return;
}

createOneTransactionThreadReport();
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to run this useEffect when createOneTransactionThreadReport changes
}, [reportMetadata.hasOnceLoadedReportActions, reportMetadata?.isOptimisticReport, transactionThreadReport?.reportID, transactionThreadReportID]);

useEffect(() => {
if (isLoadingReportData || !prevIsLoadingReportData || !prevIsAnonymousUser.current || isAnonymousUser) {
return;
Expand Down
Loading