]> cat aescling's git repositories - mastodon.git/commitdiff
Fix bug in order of conversations in web UI (#7721)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Jun 2018 02:19:16 +0000 (04:19 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Jun 2018 02:19:16 +0000 (04:19 +0200)
app/javascript/mastodon/features/status/index.js

index 505a88a3ffbc3dec64a60545b1197fcd84302353..96144b19eacb262084a20f43ac0abeacf0ea3cec 100644 (file)
@@ -77,9 +77,12 @@ const makeMapStateToProps = () => {
           let id        = ids.shift();
           const replies = state.getIn(['contexts', 'replies', id]);
 
+          if (status.get('id') !== id) {
+            mutable.push(id);
+          }
+
           if (replies) {
-            replies.forEach(reply => {
-              mutable.push(reply);
+            replies.reverse().forEach(reply => {
               ids.unshift(reply);
             });
           }