Fix console error when receiving a new message in the system console or on another team (#3688)

Этот коммит содержится в:
Joram Wilander
2016-07-28 08:41:17 -04:00
коммит произвёл Christopher Speller
родитель fc7ae6ba65
Коммит a88ff1b64d

Просмотреть файл

@@ -22,8 +22,10 @@ export function handleNewPost(post, msg) {
} else {
AsyncClient.getChannel(post.channel_id);
}
} else if (msg && (TeamStore.getCurrentId() === msg.team_id || msg.props.channel_type === Constants.DM_CHANNEL)) {
AsyncClient.getChannel(post.channel_id);
} else if (msg && (TeamStore.getCurrentId() === msg.team_id || msg.data.channel_type === Constants.DM_CHANNEL)) {
if (Client.teamId) {
AsyncClient.getChannel(post.channel_id);
}
}
var websocketMessageProps = null;