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

This commit is contained in:
Eugen Rochko 2018-06-04 04:19:16 +02:00 committed by GitHub
parent 22caa32ba2
commit e18390cfe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);
});
}