Pārlūkot izejas kodu

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

master
Eugen Rochko pirms 6 gadiem
committed by GitHub
vecāks
revīzija
e18390cfe6
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +5
    -2
      app/javascript/mastodon/features/status/index.js

+ 5
- 2
app/javascript/mastodon/features/status/index.js Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt