From 7b1035cb27dc712619332204459eb830c62f7e74 Mon Sep 17 00:00:00 2001 From: Pavlo Tsimura Date: Fri, 12 Jan 2024 19:15:51 +0100 Subject: [PATCH] Fix isWorkspaceMemberLeavingWorkspaceRoom condition for threads --- src/pages/home/HeaderView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/HeaderView.js b/src/pages/home/HeaderView.js index edf6b65b2f4a..ffb35c2f8df2 100644 --- a/src/pages/home/HeaderView.js +++ b/src/pages/home/HeaderView.js @@ -163,7 +163,7 @@ function HeaderView(props) { onSelected: join, }); } else if (canLeave) { - const isWorkspaceMemberLeavingWorkspaceRoom = lodashGet(props.report, 'visibility', '') === CONST.REPORT.VISIBILITY.RESTRICTED && isPolicyMember; + const isWorkspaceMemberLeavingWorkspaceRoom = !isChatThread && lodashGet(props.report, 'visibility', '') === CONST.REPORT.VISIBILITY.RESTRICTED && isPolicyMember; threeDotMenuItems.push({ icon: Expensicons.ChatBubbles, text: translate('common.leave'),