Skip to content

Commit

Permalink
Merge pull request Expensify#33828 from DylanDylann/fix/33315
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny authored Jan 4, 2024
2 parents 2bb6d00 + 1c33bf5 commit 5fedab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ function getOptionData(
isExpenseRequest: false,
isWaitingOnBankAccount: false,
isAllowedToComment: true,
isDeletedParentAction: false,
};
const participantPersonalDetailList: PersonalDetails[] = Object.values(OptionsListUtils.getPersonalDetailsForAccountIDs(report.participantAccountIDs ?? [], personalDetails));
const personalDetail = participantPersonalDetailList[0] ?? {};
Expand Down Expand Up @@ -311,6 +312,7 @@ function getOptionData(
result.notificationPreference = report.notificationPreference;
result.isAllowedToComment = ReportUtils.canUserPerformWriteAction(report);
result.chatType = report.chatType;
result.isDeletedParentAction = report.isDeletedParentAction;

const hasMultipleParticipants = participantPersonalDetailList.length > 1 || result.isChatRoom || result.isPolicyExpenseChat || ReportUtils.isExpenseReport(report);
const subtitle = ReportUtils.getChatRoomSubtitle(report);
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/sidebar/SidebarLinksData.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const chatReportSelector = (report) =>
// Other important less obivous properties for filtering:
parentReportActionID: report.parentReportActionID,
parentReportID: report.parentReportID,
isDeletedParentAction: report.isDeletedParentAction,
};

/**
Expand Down

0 comments on commit 5fedab8

Please sign in to comment.