forked from Ivasoft/mattermost-mobile
don't bold muted channels (#6713)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user