Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenjaHorbach committed May 28, 2024
1 parent 8a9c211 commit f6202cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
return !pendingMember || pendingMember.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? accountID : [];
});

const isGroupDMChat = useMemo(() => ReportUtils.isDM(report) && participants.length > 1, [report, participants.length]);
const isPrivateNotesFetchTriggered = report?.isLoadingPrivateNotes !== undefined;

const isSelfDM = useMemo(() => ReportUtils.isSelfDM(report), [report]);
Expand Down Expand Up @@ -200,7 +199,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
});
}

if ((isGroupChat || (isChatRoom && ReportUtils.canLeaveChat(report, policy ?? null))) && !isThread) {
if (isGroupChat || (isChatRoom && ReportUtils.canLeaveChat(report, policy ?? null))) {
items.push({
key: CONST.REPORT_DETAILS_MENU_ITEM.LEAVE_ROOM,
translationKey: 'common.leave',
Expand Down Expand Up @@ -231,7 +230,6 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
isPolicyExpenseChat,
isMoneyRequestReport,
isInvoiceReport,
isThread,
isChatRoom,
policy,
activeChatMembers.length,
Expand Down Expand Up @@ -357,7 +355,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
/>
</OfflineWithFeedback>
)}
{!isGroupDMChat && <ChatDetailsQuickActionsBar report={report} />}
<ChatDetailsQuickActionsBar report={report} />
{menuItems.map((item) => {
const brickRoadIndicator =
ReportUtils.hasReportNameError(report) && item.key === CONST.REPORT_DETAILS_MENU_ITEM.SETTINGS ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined;
Expand Down

0 comments on commit f6202cc

Please sign in to comment.