We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75c5e76 + 5686a9c commit eae70cfCopy full SHA for eae70cf
1 file changed
src/libs/ReportActionsUtils.ts
@@ -156,11 +156,12 @@ function isDeletedAction(reportAction: OnyxInputOrEntry<ReportAction | Optimisti
156
if (!Array.isArray(message)) {
157
return message?.html === '' || !!message?.deleted;
158
}
159
+ const originalMessage = getOriginalMessage(reportAction);
160
161
// A legacy deleted comment has either an empty array or an object with html field with empty string as value
162
const isLegacyDeletedComment = message.length === 0 || message.at(0)?.html === '';
163
- return isLegacyDeletedComment || !!message.at(0)?.deleted;
164
+ return isLegacyDeletedComment || !!message.at(0)?.deleted || (!!originalMessage && 'deleted' in originalMessage && !!originalMessage?.deleted);
165
166
167
/**
0 commit comments