RN-178 Show unread and mention count on the current team in Team Switcher (#603)
This commit is contained in:
parent
f20163197a
commit
42251ffc40
1 changed files with 19 additions and 19 deletions
|
|
@ -107,27 +107,27 @@ class ChannelDrawerTeams extends PureComponent {
|
|||
/>
|
||||
</View>
|
||||
);
|
||||
} else {
|
||||
const member = myTeamMembers[item.id];
|
||||
}
|
||||
|
||||
let badgeCount = 0;
|
||||
if (member.mention_count) {
|
||||
badgeCount = member.mention_count;
|
||||
} else if (member.msg_count) {
|
||||
badgeCount = -1;
|
||||
}
|
||||
const member = myTeamMembers[item.id];
|
||||
|
||||
if (badgeCount) {
|
||||
badge = (
|
||||
<Badge
|
||||
style={styles.badge}
|
||||
countStyle={styles.mention}
|
||||
count={badgeCount}
|
||||
minHeight={5}
|
||||
minWidth={5}
|
||||
/>
|
||||
);
|
||||
}
|
||||
let badgeCount = 0;
|
||||
if (member.mention_count) {
|
||||
badgeCount = member.mention_count;
|
||||
} else if (member.msg_count) {
|
||||
badgeCount = -1;
|
||||
}
|
||||
|
||||
if (badgeCount) {
|
||||
badge = (
|
||||
<Badge
|
||||
style={styles.badge}
|
||||
countStyle={styles.mention}
|
||||
count={badgeCount}
|
||||
minHeight={5}
|
||||
minWidth={5}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue