Fixed number in title not appearing for direct messages (#3875)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
7bd26b1927
Коммит
8efa4dc9a5
@@ -81,11 +81,10 @@ export default class Sidebar extends React.Component {
|
||||
|
||||
Object.keys(unreadCounts).forEach((chId) => {
|
||||
const channel = ChannelStore.get(chId);
|
||||
if (channel) {
|
||||
if (channel.team_id === this.state.currentTeam.id) {
|
||||
msgs += unreadCounts[chId].msgs;
|
||||
mentions += unreadCounts[chId].mentions;
|
||||
}
|
||||
|
||||
if (channel && (!channel.team_id || channel.team_id === this.state.currentTeam.id)) {
|
||||
msgs += unreadCounts[chId].msgs;
|
||||
mentions += unreadCounts[chId].mentions;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user