mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 22:36:21 +01:00
Fix bug in order of conversations in web UI (#7721)
This commit is contained in:
parent
22caa32ba2
commit
e18390cfe6
@ -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 => {
|
replies.reverse().forEach(reply => {
|
||||||
mutable.push(reply);
|
|
||||||
ids.unshift(reply);
|
ids.unshift(reply);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user