[Glitch] Fix bug in order of conversations in web UI

Port e18390cfe6 to glitch-soc
master
Thibaut Girka 6 years ago committed by ThibG
parent 837ea32c88
commit 31599ad91c
  1. 7
      app/javascript/flavours/glitch/features/status/index.js

@ -80,9 +80,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 => { replies.reverse().forEach(reply => {
mutable.push(reply);
ids.unshift(reply); ids.unshift(reply);
}); });
} }

Loading…
Cancel
Save