Skip to content

Commit 1b6cdff

Browse files
committed
undo filtering out categorize whisper messsage from lastvisible action when category is diabled
1 parent 4e9f504 commit 1b6cdff

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/libs/OptionsListUtils/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ Onyx.connect({
267267
allSortedReportActions[reportID] = sortedReportActions;
268268
const report = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`];
269269
const chatReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${report?.chatReportID}`];
270-
const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`];
271270

272271
// If the report is a one-transaction report and has , we need to return the combined reportActions so that the LHN can display modifications
273272
// to the transaction thread or the report itself
@@ -293,7 +292,7 @@ Onyx.connect({
293292
const reportActionsForDisplay = sortedReportActions.filter(
294293
(reportAction, actionKey) =>
295294
(!(isWhisperAction(reportAction) && !isReportPreviewAction(reportAction) && !isMoneyRequestAction(reportAction)) || isActionableMentionWhisper(reportAction)) &&
296-
shouldReportActionBeVisible(reportAction, actionKey, isWriteActionAllowed, policy) &&
295+
shouldReportActionBeVisible(reportAction, actionKey, isWriteActionAllowed) &&
297296
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED &&
298297
reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
299298
);

0 commit comments

Comments
 (0)