Skip to content

Commit

Permalink
Merge pull request #34461 from paultsimura/fix/33875-leave-thread-con…
Browse files Browse the repository at this point in the history
…cierge

Fix isWorkspaceMemberLeavingWorkspaceRoom condition for threads
  • Loading branch information
MonilBhavsar authored Jan 17, 2024
2 parents 4097c00 + 7a046af commit 089f3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/HeaderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,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'),
Expand Down

0 comments on commit 089f3e1

Please sign in to comment.