Do not redirect to /messages after editing status

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-05-04 20:33:49 +02:00
parent 7a7db0a4c2
commit 53152d9174
1 changed files with 1 additions and 1 deletions

View File

@ -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);