diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-04-07 14:19:17 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-04-07 19:19:17 +0100 |
commit | 8dbb297b3e0a00deb2eb31333b9b1bde37d90543 (patch) | |
tree | 141994e9927c8e2f92bef170e9dd730138f4b963 /webapp/actions/post_actions.jsx | |
parent | a56310ba8f4fb7d8de7bed2a6f10c8c603558311 (diff) | |
download | chat-8dbb297b3e0a00deb2eb31333b9b1bde37d90543.tar.gz chat-8dbb297b3e0a00deb2eb31333b9b1bde37d90543.tar.bz2 chat-8dbb297b3e0a00deb2eb31333b9b1bde37d90543.zip |
PLT-6238 Fix 404 error in system console (#6014)
Diffstat (limited to 'webapp/actions/post_actions.jsx')
-rw-r--r-- | webapp/actions/post_actions.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx index c0abbd1c3..015d93d0f 100644 --- a/webapp/actions/post_actions.jsx +++ b/webapp/actions/post_actions.jsx @@ -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)); } } |