From: Eugen Rochko Date: Sun, 4 Dec 2016 17:34:30 +0000 (+0100) Subject: Fix rule X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=41b4be699fa5908dee13f0ceed391f88e2923853;p=mastodon.git Fix rule --- diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx index a39ee7e19..23bcf8eac 100644 --- a/app/assets/javascripts/components/actions/compose.jsx +++ b/app/assets/javascripts/components/actions/compose.jsx @@ -70,8 +70,13 @@ export function submitCompose() { unlisted: getState().getIn(['compose', 'unlisted']) }).then(function (response) { dispatch(submitComposeSuccess({ ...response.data })); + + // To make the app more responsive, immediately get the status into the columns dispatch(updateTimeline('home', { ...response.data })); - dispatch(updateTimeline('public', { ...response.data })); + + if (response.data.in_reply_to_id === null) { + dispatch(updateTimeline('public', { ...response.data })); + } }).catch(function (error) { dispatch(submitComposeFail(error)); });