From a3cdfd00686f3864782e7fda9d2628bf400867b3 Mon Sep 17 00:00:00 2001 From: Abdelrahman Khattab Date: Fri, 6 Oct 2023 12:01:08 +0300 Subject: [PATCH] Fixing zoom and google items being accessible after room achieving --- src/pages/home/HeaderView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/home/HeaderView.js b/src/pages/home/HeaderView.js index 2ac58a13ce18..4e48a965b095 100644 --- a/src/pages/home/HeaderView.js +++ b/src/pages/home/HeaderView.js @@ -88,6 +88,7 @@ function HeaderView(props) { const isCanceledTaskReport = ReportUtils.isCanceledTaskReport(props.report, parentReportAction); const lastVisibleMessage = ReportActionsUtils.getLastVisibleMessage(props.report.reportID); const isEmptyChat = !props.report.lastMessageText && !props.report.lastMessageTranslationKey && !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey; + const isArchivedRoom = ReportUtils.isArchivedRoom(props.report); // We hide the button when we are chatting with an automated Expensify account since it's not possible to contact // these users via alternative means. It is possible to request a call with Concierge so we leave the option for them. @@ -159,7 +160,7 @@ function HeaderView(props) { Link.openExternalLink(props.guideCalendarLink); }, }); - } else if (!isAutomatedExpensifyAccount && !isTaskReport) { + } else if (!isAutomatedExpensifyAccount && !isTaskReport && !isArchivedRoom) { threeDotMenuItems.push({ icon: ZoomIcon, iconFill: themeColors.icon,