mirror of https://github.com/sk22/megalodon.git
remove existing statuses to move them up
This commit is contained in:
parent
ed24e89a96
commit
5f7faa69e8
|
@ -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()){
|
||||
|
|
Loading…
Reference in New Issue