From 2a91e5e031d9490f8364d55cb023d384d56f047f Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 30 Dec 2016 13:12:43 -0500 Subject: Clean up /logout command flow and errors (#4918) --- webapp/components/create_post.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webapp/components') diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index 8e75b6070..13a8c729f 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -125,6 +125,11 @@ export default class CreatePost extends React.Component { (data) => { this.setState({submitting: false}); + if (post.message.trim() === '/logout') { + GlobalActions.clientLogout(data.goto_location); + return; + } + if (data.goto_location && data.goto_location.length > 0) { browserHistory.push(data.goto_location); } -- cgit v1.2.3-1-g7c22