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

Port e18390cfe6 to glitch-soc
signup-info-prompt
Thibaut Girka 2018-11-30 12:24:58 +01:00 committed by ThibG
parent 837ea32c88
commit 31599ad91c
1 changed files with 5 additions and 2 deletions

View File

@ -80,9 +80,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);
});
}