Skip to content

Commit

Permalink
allow flags of all non-Concierge whispers
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous committed May 3, 2024
1 parent 387ab0e commit 2f5273f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5180,8 +5180,8 @@ function canFlagReportAction(reportAction: OnyxEntry<ReportAction>, reportID: st
reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.RENAMED ||
reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.CHRONOS_OOO_LIST;
if (ReportActionsUtils.isWhisperAction(reportAction)) {
// Allow flagging welcome message whispers as they can be set by any room creator
if (report?.description && !isCurrentUserAction && isOriginalMessageHaveHtml && reportAction?.originalMessage?.html === report.description) {
// Allow flagging whispers that are sent by other users
if (reportAction?.actorAccountID !== CONST.ACCOUNT_ID.CONCIERGE) {
return true;
}

Expand Down

0 comments on commit 2f5273f

Please sign in to comment.