PLT-6238 Fix 404 error in system console (#6014)

Этот коммит содержится в:
Harrison Healey
2017-04-07 14:19:17 -04:00
коммит произвёл George Goldberg
родитель a56310ba8f
Коммит 8dbb297b3e

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

@@ -36,6 +36,11 @@ export function handleNewPost(post, msg) {
if (ChannelStore.getMyMember(post.channel_id)) {
completePostReceive(post, websocketMessageProps);
} else {
// This API call requires any real team id in API v3, so set one if we don't already have one
if (!Client.teamId && msg && msg.data) {
Client.setTeamId(msg.data.team_id);
}
AsyncClient.getChannelMember(post.channel_id, UserStore.getCurrentId()).then(() => completePostReceive(post, websocketMessageProps));
}
}