Skip to content

Commit

Permalink
Update src/pages/home/HeaderView.js
Browse files Browse the repository at this point in the history
Co-authored-by: Pavlo Tsimura <[email protected]>
  • Loading branch information
ishpaul777 and paultsimura authored Mar 5, 2024
1 parent 1c5812b commit 977275d
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 || isUserCreatedPolicyRoom || canLeaveRoom) && !isSelfDM;
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 977275d

Please sign in to comment.