Skip to content

Commit

Permalink
Merge pull request #23521 from Expensify/srikar-hideMutedChats
Browse files Browse the repository at this point in the history
Hide All Muted Chats
  • Loading branch information
cristipaval authored Jul 28, 2023
2 parents fed84b5 + bcf4c81 commit ec1ccf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/LHNOptionsList/OptionRowLHN.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ function OptionRowLHN(props) {
return null;
}

const isMuted = optionItem.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.MUTE;
if (isMuted && !props.isFocused && !optionItem.isPinned) {
return null;
}

let popoverAnchor = null;
const textStyle = props.isFocused ? styles.sidebarLinkActiveText : styles.sidebarLinkText;
const textUnreadStyle = optionItem.isUnread ? [textStyle, styles.sidebarLinkTextBold] : [textStyle];
Expand Down

0 comments on commit ec1ccf8

Please sign in to comment.