]> cat aescling's git repositories - mastodon.git/commitdiff
Fix rule
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Dec 2016 17:34:30 +0000 (18:34 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Dec 2016 17:34:30 +0000 (18:34 +0100)
app/assets/javascripts/components/actions/compose.jsx

index a39ee7e198dd4a4ed3d2f5a1708a416947868854..23bcf8eac9de25adbd9827a383945ca692d6a491 100644 (file)
@@ -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));
     });