From 6f40e3333d82218d482485493f5bc8c408f02cae Mon Sep 17 00:00:00 2001 From: thelullabyy Date: Wed, 27 Aug 2025 14:24:17 +0700 Subject: [PATCH] fix: Whisper message disappears after mention next user --- src/libs/ReportActionsUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 0008138406f0..4641f2d02d3b 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -150,7 +150,7 @@ function isCreatedAction(reportAction: OnyxInputOrEntry): boolean } function isDeletedAction(reportAction: OnyxInputOrEntry): boolean { - if (isInviteOrRemovedAction(reportAction)) { + if (isInviteOrRemovedAction(reportAction) || isActionableMentionWhisper(reportAction)) { return false; } @@ -761,7 +761,7 @@ function isReportActionDeprecated(reportAction: OnyxEntry, key: st * Checks if a given report action corresponds to an actionable mention whisper. * @param reportAction */ -function isActionableMentionWhisper(reportAction: OnyxEntry): reportAction is ReportAction { +function isActionableMentionWhisper(reportAction: OnyxInputOrEntry): reportAction is ReportAction { return isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_MENTION_WHISPER); }