PLT-6238 Fix 404 error in system console (#6014)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
a56310ba8f
Коммит
8dbb297b3e
@@ -36,6 +36,11 @@ export function handleNewPost(post, msg) {
|
|||||||
if (ChannelStore.getMyMember(post.channel_id)) {
|
if (ChannelStore.getMyMember(post.channel_id)) {
|
||||||
completePostReceive(post, websocketMessageProps);
|
completePostReceive(post, websocketMessageProps);
|
||||||
} else {
|
} 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));
|
AsyncClient.getChannelMember(post.channel_id, UserStore.getCurrentId()).then(() => completePostReceive(post, websocketMessageProps));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user