@@ -5206,7 +5206,7 @@ function updateMoneyRequestDate({
52065206 removeTransactionFromDuplicateTransactionViolation(data.onyxData, transactionID, transactions, transactionViolations);
52075207 }
52085208 const {params, onyxData} = data;
5209- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5209+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
52105210 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_DATE, params, onyxData);
52115211}
52125212
@@ -5354,7 +5354,7 @@ function updateMoneyRequestMerchant({
53545354 });
53555355 }
53565356 const {params, onyxData} = data;
5357- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5357+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
53585358 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_MERCHANT, params, onyxData);
53595359}
53605360
@@ -5457,7 +5457,7 @@ function updateMoneyRequestTag({
54575457 isASAPSubmitBetaEnabled,
54585458 iouReportNextStep: parentReportNextStep,
54595459 });
5460- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5460+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
54615461 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_TAG, params, onyxData);
54625462}
54635463
@@ -5504,7 +5504,7 @@ function updateMoneyRequestTaxAmount({
55045504 iouReportNextStep: parentReportNextStep,
55055505 });
55065506 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_TAX_AMOUNT, params, onyxData);
5507- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5507+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
55085508}
55095509
55105510type UpdateMoneyRequestTaxRateParams = {
@@ -5559,7 +5559,7 @@ function updateMoneyRequestTaxRate({
55595559 });
55605560
55615561 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_TAX_RATE, params, onyxData);
5562- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5562+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
55635563}
55645564
55655565type UpdateMoneyRequestDistanceParams = {
@@ -5731,7 +5731,7 @@ function updateMoneyRequestCategory({
57315731 hash,
57325732 iouReportNextStep: parentReportNextStep,
57335733 });
5734- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5734+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
57355735 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_CATEGORY, params, onyxData);
57365736}
57375737
@@ -5786,7 +5786,7 @@ function updateMoneyRequestDescription({
57865786 }
57875787 const {params, onyxData} = data;
57885788 params.description = parsedComment;
5789- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5789+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
57905790 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_DESCRIPTION, params, onyxData);
57915791}
57925792
@@ -5860,7 +5860,7 @@ function updateMoneyRequestDistanceRate({
58605860 // `taxAmount` & `taxCode` only needs to be updated in the optimistic data, so we need to remove them from the params
58615861 const {taxAmount, taxCode, ...paramsWithoutTaxUpdated} = params;
58625862 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_DISTANCE_RATE, paramsWithoutTaxUpdated, onyxData);
5863- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
5863+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
58645864}
58655865
58665866const getConvertTrackedExpenseInformation = (
@@ -6740,7 +6740,7 @@ function requestMoney(requestMoneyInformation: RequestMoneyInformation): {iouRep
67406740 if (activeReportID && !isMoneyRequestReport) {
67416741 Navigation.setNavigationActionToMicrotaskQueue(() =>
67426742 setTimeout(() => {
6743- notifyNewAction(activeReportID, payeeAccountID, reportPreviewAction );
6743+ notifyNewAction(activeReportID, reportPreviewAction, payeeAccountID === currentUserAccountIDParam );
67446744 }, CONST.TIMING.NOTIFY_NEW_ACTION_DELAY),
67456745 );
67466746 }
@@ -6857,7 +6857,7 @@ function submitPerDiemExpense(submitPerDiemExpenseInformation: PerDiemExpenseInf
68576857 handleNavigateAfterExpenseCreate({activeReportID, transactionID: transaction.transactionID, isFromGlobalCreate});
68586858
68596859 if (activeReportID) {
6860- notifyNewAction(activeReportID, payeeAccountID);
6860+ notifyNewAction(activeReportID, undefined, payeeAccountID === currentUserAccountIDParam );
68616861 }
68626862}
68636863
@@ -7218,7 +7218,7 @@ function trackExpense(params: CreateTrackExpenseParams) {
72187218 });
72197219 }
72207220
7221- notifyNewAction(activeReportID, payeeAccountID);
7221+ notifyNewAction(activeReportID, undefined, payeeAccountID === currentUserAccountIDParam );
72227222}
72237223
72247224function getOrCreateOptimisticSplitChatReport(existingSplitChatReportID: string | undefined, participants: Participant[], participantAccountIDs: number[], currentUserAccountID: number) {
@@ -8077,7 +8077,7 @@ function createDistanceRequest(distanceRequestInformation: CreateDistanceRequest
80778077 }
80788078
80798079 if (!isMoneyRequestReport) {
8080- notifyNewAction(activeReportID, userAccountID );
8080+ notifyNewAction(activeReportID, undefined, true );
80818081 }
80828082}
80838083
@@ -8156,7 +8156,7 @@ function updateMoneyRequestAmountAndCurrency({
81568156 removeTransactionFromDuplicateTransactionViolation(data.onyxData, transactionID, transactions, transactionViolations);
81578157 }
81588158 const {params, onyxData} = data;
8159- notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam );
8159+ notifyNewAction(Navigation.getSearchTopmostReportId(), undefined, true );
81608160 API.write(WRITE_COMMANDS.UPDATE_MONEY_REQUEST_AMOUNT_AND_CURRENCY, params, onyxData);
81618161}
81628162
@@ -11336,7 +11336,8 @@ function cancelPayment(
1133611336 },
1133711337 {optimisticData, successData, failureData},
1133811338 );
11339- notifyNewAction(expenseReport.reportID, userAccountID);
11339+
11340+ notifyNewAction(expenseReport.reportID, undefined, true);
1134011341}
1134111342
1134211343/**
@@ -11419,7 +11420,7 @@ function payMoneyRequest(params: PayMoneyRequestFunctionParams) {
1141911420
1142011421 playSound(SOUNDS.SUCCESS);
1142111422 API.write(apiCommand, payMoneyRequestParams, {optimisticData, successData, failureData});
11422- notifyNewAction(!full ? (Navigation.getTopmostReportId() ?? iouReport?.reportID) : iouReport?.reportID, userAccountID );
11423+ notifyNewAction(!full ? (Navigation.getTopmostReportId() ?? iouReport?.reportID) : iouReport?.reportID, undefined, true );
1142311424 return payMoneyRequestParams.optimisticHoldReportID;
1142411425}
1142511426
@@ -13029,7 +13030,7 @@ function markRejectViolationAsResolved(transactionID: string, reportID?: string)
1302913030 });
1303013031
1303113032 const currentReportID = getDisplayedReportID(reportID);
13032- notifyNewAction(currentReportID, userAccountID );
13033+ notifyNewAction(currentReportID, undefined, true );
1303313034}
1303413035
1303513036function initSplitExpenseItemData(
0 commit comments