Do not redirect to /messages after editing status
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
7a7db0a4c2
commit
53152d9174
|
@ -291,7 +291,7 @@ export function submitCompose(routerHistory, force = false) {
|
|||
};
|
||||
|
||||
dispatch(createStatus(params, idempotencyKey, statusId)).then(function(data) {
|
||||
if (data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) {
|
||||
if (!statusId && data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) {
|
||||
routerHistory.push('/messages');
|
||||
}
|
||||
handleComposeSubmit(dispatch, getState, data, status);
|
||||
|
|
Loading…
Reference in New Issue