don't bold muted channels (#6713)

This commit is contained in:
Guillermo Vayá 2022-10-28 15:53:29 +02:00 committed by GitHub
parent 04c3533b95
commit fd7ab546e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ const ChannelIcon = ({
let unreadGroup;
let mutedStyle;
if (isUnread) {
if (isUnread && !isMuted) {
unreadIcon = styles.iconUnread;
unreadGroupBox = styles.groupBoxUnread;
unreadGroup = styles.groupUnread;
@ -116,7 +116,7 @@ const ChannelIcon = ({
}
if (isInfo) {
activeIcon = isUnread ? styles.iconInfoUnread : styles.iconInfo;
activeIcon = isUnread && !isMuted ? styles.iconInfoUnread : styles.iconInfo;
activeGroupBox = styles.groupBoxInfo;
activeGroup = isUnread ? styles.groupInfoUnread : styles.groupInfo;
}

View file

@ -151,7 +151,7 @@ const ChannelListItem = ({
}, [channel.id]);
const textStyles = useMemo(() => [
isBolded ? textStyle.bold : textStyle.regular,
isBolded && !isMuted ? textStyle.bold : textStyle.regular,
styles.text,
isBolded && styles.highlight,
isActive && isTablet && !isInfo ? styles.textActive : null,