From b1146af1614395294db77cd2d57e23caf820797b Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 3 Nov 2023 11:26:29 +0700 Subject: [PATCH 1/3] display public room in LHN --- src/libs/ReportUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index deac1b498e3f..22b13bfff55a 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -3293,6 +3293,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas, (report.participantAccountIDs && report.participantAccountIDs.length === 0 && !isChatThread(report) && + !isPublicRoom(report) && !isUserCreatedPolicyRoom(report) && !isArchivedRoom(report) && !isMoneyRequestReport(report) && From 0c2cce35a3d4744e55ab45173f431522f02a32ea Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 3 Nov 2023 12:00:53 +0700 Subject: [PATCH 2/3] fix test --- src/pages/iou/steps/MoneyRequestConfirmPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/steps/MoneyRequestConfirmPage.js b/src/pages/iou/steps/MoneyRequestConfirmPage.js index 6b570ee872c3..ee59dbd2308e 100644 --- a/src/pages/iou/steps/MoneyRequestConfirmPage.js +++ b/src/pages/iou/steps/MoneyRequestConfirmPage.js @@ -133,7 +133,7 @@ function MoneyRequestConfirmPage(props) { if (_.isEmpty(props.iou.participants) || (props.iou.amount === 0 && !props.iou.receiptPath && !isDistanceRequest) || shouldReset || ReportUtils.isArchivedRoom(props.report)) { Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID), true); - } + } return () => { prevMoneyRequestId.current = props.iou.id; From a10c83597bfea8211e367470c632c5a4f78e8d6c Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 3 Nov 2023 12:01:52 +0700 Subject: [PATCH 3/3] fix lint --- src/pages/iou/steps/MoneyRequestConfirmPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/steps/MoneyRequestConfirmPage.js b/src/pages/iou/steps/MoneyRequestConfirmPage.js index ee59dbd2308e..6b570ee872c3 100644 --- a/src/pages/iou/steps/MoneyRequestConfirmPage.js +++ b/src/pages/iou/steps/MoneyRequestConfirmPage.js @@ -133,7 +133,7 @@ function MoneyRequestConfirmPage(props) { if (_.isEmpty(props.iou.participants) || (props.iou.amount === 0 && !props.iou.receiptPath && !isDistanceRequest) || shouldReset || ReportUtils.isArchivedRoom(props.report)) { Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID), true); - } + } return () => { prevMoneyRequestId.current = props.iou.id;