Fixed mentions not updating when team switched (#3807)
Этот коммит содержится в:
@@ -79,8 +79,13 @@ export default class Sidebar extends React.Component {
|
|||||||
const unreadCounts = this.state.unreadCounts;
|
const unreadCounts = this.state.unreadCounts;
|
||||||
|
|
||||||
Object.keys(unreadCounts).forEach((chId) => {
|
Object.keys(unreadCounts).forEach((chId) => {
|
||||||
|
const channel = ChannelStore.get(chId);
|
||||||
|
if (channel) {
|
||||||
|
if (channel.team_id === this.state.currentTeam.id) {
|
||||||
msgs += unreadCounts[chId].msgs;
|
msgs += unreadCounts[chId].msgs;
|
||||||
mentions += unreadCounts[chId].mentions;
|
mentions += unreadCounts[chId].mentions;
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return {msgs, mentions};
|
return {msgs, mentions};
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user