pl-fe: do not redirect to conversations page when replying
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
parent
40376e4576
commit
79e4087aca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue