Skip to content

Commit

Permalink
Merge pull request #37726 from ishpaul777/fix/37709
Browse files Browse the repository at this point in the history
[CP staging] Fix join button displayed in group chat
  • Loading branch information
MonilBhavsar authored Mar 5, 2024
2 parents 9c49ab6 + 012f309 commit 95d804d
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 @@ -169,7 +169,7 @@ function HeaderView(props) {
),
);

const canJoinOrLeave = isChatThread || !isSelfDM || isUserCreatedPolicyRoom || canLeaveRoom;
const canJoinOrLeave = !isSelfDM && (isChatThread || isUserCreatedPolicyRoom || canLeaveRoom);
const canJoin = canJoinOrLeave && !isWhisperAction && props.report.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN;
const canLeave = canJoinOrLeave && ((isChatThread && props.report.notificationPreference.length) || isUserCreatedPolicyRoom || canLeaveRoom);
if (canJoin) {
Expand Down

0 comments on commit 95d804d

Please sign in to comment.