Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Apr 12, 2024
1 parent c479153 commit e391d7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ export default {
},
groupChat: {
groupMembersListTitle: 'Directory of all group members.',
lastMemberWarning: 'Heads up! Since you\'re the last person here, leaving will make this chat inaccessible to all users. Are you sure you want to leave?',
lastMemberWarning: "Heads up! Since you're the last person here, leaving will make this chat inaccessible to all users. Are you sure you want to leave?",
defaultReportName: ({displayName}: {displayName: string}) => `${displayName}'s group chat`,
},
languagePage: {
Expand Down
6 changes: 4 additions & 2 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,11 @@ function ReportScreen({
const onyxReportID = report.reportID;
const prevOnyxReportID = prevReport.reportID;
const wasReportRemoved = !!prevOnyxReportID && prevOnyxReportID === reportIDFromRoute && !onyxReportID;
const isRemovalExpectedForReportType = isEmpty(report) && (ReportUtils.isMoneyRequest(prevReport) || ReportUtils.isMoneyRequestReport(prevReport) || ReportUtils.isPolicyExpenseChat(prevReport) || ReportUtils.isGroupChat(prevReport));
const isRemovalExpectedForReportType =
isEmpty(report) &&
(ReportUtils.isMoneyRequest(prevReport) || ReportUtils.isMoneyRequestReport(prevReport) || ReportUtils.isPolicyExpenseChat(prevReport) || ReportUtils.isGroupChat(prevReport));
const didReportClose = wasReportRemoved && prevReport.statusNum === CONST.REPORT.STATUS_NUM.OPEN && report.statusNum === CONST.REPORT.STATUS_NUM.CLOSED;
const isTopLevelPolicyRoomWithNoStatus = !report.statusNum && !prevReport.parentReportID && (prevReport.chatType === CONST.REPORT.CHAT_TYPE.POLICY_ROOM);
const isTopLevelPolicyRoomWithNoStatus = !report.statusNum && !prevReport.parentReportID && prevReport.chatType === CONST.REPORT.CHAT_TYPE.POLICY_ROOM;
const isClosedTopLevelPolicyRoom = wasReportRemoved && prevReport.statusNum === CONST.REPORT.STATUS_NUM.OPEN && isTopLevelPolicyRoomWithNoStatus;

// Navigate to the Concierge chat if the room was removed from another device (e.g. user leaving a room or removed from a room)
Expand Down

0 comments on commit e391d7d

Please sign in to comment.