From 53152d9174cfc08a093f69e629e9598509520e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 4 May 2022 20:33:49 +0200 Subject: [PATCH] Do not redirect to /messages after editing status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/actions/compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/actions/compose.js b/app/soapbox/actions/compose.js index 20b0bf77c..457089f7a 100644 --- a/app/soapbox/actions/compose.js +++ b/app/soapbox/actions/compose.js @@ -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);