Removed unused redirect after compose submit

route: /posts/new no longer exists
This commit is contained in:
mgabdev 2019-07-17 18:46:42 -04:00
parent 17af572ec9
commit 5ca9ea500d

@ -154,8 +154,6 @@ export function submitCompose(routerHistory) {
}).then(function (response) {
if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) {
routerHistory.push('/messages');
} else if (routerHistory && routerHistory.location.pathname === '/posts/new' && window.history.state) {
routerHistory.goBack();
}
dispatch(insertIntoTagHistory(response.data.tags, status));