Browse Source

Fix bug in order of conversations in web UI (#7721)

master
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
e18390cfe6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      app/javascript/mastodon/features/status/index.js

+ 5
- 2
app/javascript/mastodon/features/status/index.js View File

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

Loading…
Cancel
Save