Skip to content

Commit

Permalink
Merge c6851ea into 62204a7
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey committed Apr 6, 2017
2 parents 62204a7 + c6851ea commit 78219c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webapp/actions/post_actions.jsx
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 78219c8

Please sign in to comment.