Skip to content

Commit a554abd

Browse files
committed
avoid deleted iou actions in getOneTransactionThreadReportID
1 parent 4053d40 commit a554abd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/libs/ReportActionsUtils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,12 +1290,8 @@ function getOneTransactionThreadReportID(
12901290
action.childReportID &&
12911291
// Include deleted IOU reportActions if:
12921292
// - they have an associated IOU transaction ID or
1293-
// - they have visible childActions (like comments) that we'd want to display
12941293
// - the action is pending deletion and the user is offline
1295-
(!!originalMessage?.IOUTransactionID ||
1296-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
1297-
(isMessageDeleted(action) && action.childVisibleActionCount) ||
1298-
(action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && (isOffline ?? isNetworkOffline)))
1294+
(!!originalMessage?.IOUTransactionID || (action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && (isOffline ?? isNetworkOffline)))
12991295
) {
13001296
iouRequestActions.push(action);
13011297
}

0 commit comments

Comments
 (0)