diff options
author | =Corey Hulen <corey@hulen.com> | 2016-02-04 10:55:44 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-02-04 10:55:44 -0800 |
commit | cfd4e4de963703191e750ba0abb901c5f6c0c3e4 (patch) | |
tree | d01a656eeeaba9603568a54a164f378608c4a939 /web/react/components/create_post.jsx | |
parent | f1bf70624288bd192b9523764f239eee2a022304 (diff) | |
parent | 44c19ee443831e0e94b5738ecb21a64ce7643247 (diff) | |
download | chat-cfd4e4de963703191e750ba0abb901c5f6c0c3e4.tar.gz chat-cfd4e4de963703191e750ba0abb901c5f6c0c3e4.tar.bz2 chat-cfd4e4de963703191e750ba0abb901c5f6c0c3e4.zip |
Merge branch 'master' into PLT-1851
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r-- | web/react/components/create_post.jsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx index ed672cd34..20892898e 100644 --- a/web/react/components/create_post.jsx +++ b/web/react/components/create_post.jsx @@ -155,15 +155,10 @@ class CreatePost extends React.Component { post.message, false, (data) => { - if (data.response === 'not implemented') { - this.sendMessage(post); - return; - } - PostStore.storeDraft(data.channel_id, null); this.setState({messageText: '', submitting: false, postError: null, previews: [], serverError: null}); - if (data.goto_location.length > 0) { + if (data.goto_location && data.goto_location.length > 0) { window.location.href = data.goto_location; } }, |