about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-04 18:34:30 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-04 18:34:30 +0100
commit41b4be699fa5908dee13f0ceed391f88e2923853 (patch)
treebe408cd7939db99905e0d5d7cb1793c515580337 /app/assets/javascripts
parentd5da55c6cc100ee36391474762a34955075824ee (diff)
Fix rule
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/actions/compose.jsx7
1 files changed, 6 insertions, 1 deletions
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));
     });