From 79e4087acad8aae0adb9fd3ffdd2a3c80da75553 Mon Sep 17 00:00:00 2001 From: mkljczk Date: Thu, 5 Dec 2024 14:11:28 +0100 Subject: [PATCH] pl-fe: do not redirect to conversations page when replying Signed-off-by: mkljczk --- packages/pl-fe/src/actions/compose.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/actions/compose.ts b/packages/pl-fe/src/actions/compose.ts index b8e9cfe6e..f5116a817 100644 --- a/packages/pl-fe/src/actions/compose.ts +++ b/packages/pl-fe/src/actions/compose.ts @@ -432,7 +432,7 @@ const submitCompose = (composeId: string, opts: SubmitComposeOpts = {}) => } return dispatch(createStatus(params, idempotencyKey, statusId)).then((data) => { - if (!statusId && data.scheduled_at === null && data.visibility === 'direct' && getState().conversations.mounted <= 0 && history) { + if (!statusId && !data.in_reply_to_id && data.scheduled_at === null && data.visibility === 'direct' && history) { history.push('/conversations'); } handleComposeSubmit(dispatch, getState, composeId, data, status, !!statusId);