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) => {
|
Object.keys(unreadCounts).forEach((chId) => {
|
||||||
const channel = ChannelStore.get(chId);
|
const channel = ChannelStore.get(chId);
|
||||||
if (channel) {
|
|
||||||
if (channel.team_id === this.state.currentTeam.id) {
|
if (channel && (!channel.team_id || channel.team_id === this.state.currentTeam.id)) {
|
||||||
msgs += unreadCounts[chId].msgs;
|
msgs += unreadCounts[chId].msgs;
|
||||||
mentions += unreadCounts[chId].mentions;
|
mentions += unreadCounts[chId].mentions;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -329,7 +329,6 @@ class ChannelStoreClass extends EventEmitter {
|
|||||||
|
|
||||||
if (ch.type === 'D') {
|
if (ch.type === 'D') {
|
||||||
chMentionCount = chUnreadCount;
|
chMentionCount = chUnreadCount;
|
||||||
chUnreadCount = 0;
|
|
||||||
} else if (chMember.notify_props && chMember.notify_props.mark_unread === NotificationPrefs.MENTION) {
|
} else if (chMember.notify_props && chMember.notify_props.mark_unread === NotificationPrefs.MENTION) {
|
||||||
chUnreadCount = 0;
|
chUnreadCount = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user