remove existing statuses to move them up

This commit is contained in:
sk 2023-10-18 22:07:10 +02:00
parent ed24e89a96
commit 5f7faa69e8
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public class HomeTimelineFragment extends StatusListFragment {
toAdd=result;
}
List<String> existingIds=data.stream().map(Status::getID).collect(Collectors.toList());
toAdd.removeIf(s->existingIds.contains(s.getID()));
toAdd.stream().filter(s->existingIds.contains(s.getID())).forEach(s->removeStatus(s));
List<Status> toAddUnfiltered=new ArrayList<>(toAdd);
AccountSessionManager.get(accountID).filterStatuses(toAdd, getFilterContext());
if(!toAdd.isEmpty()){