Filter all status, even if filters are empty (#255)
This commit is contained in:
parent
e604da4ff4
commit
32bb3fac69
|
@ -188,10 +188,8 @@ public class HomeTimelineFragment extends StatusListFragment{
|
||||||
result.get(result.size()-1).hasGapAfter=true;
|
result.get(result.size()-1).hasGapAfter=true;
|
||||||
toAdd=result;
|
toAdd=result;
|
||||||
}
|
}
|
||||||
List<Filter> filters=AccountSessionManager.getInstance().getAccount(accountID).wordFilters.stream().filter(f->f.context.contains(Filter.FilterContext.HOME)).collect(Collectors.toList());
|
StatusFilterPredicate filterPredicate=new StatusFilterPredicate(accountID, Filter.FilterContext.HOME);
|
||||||
if(!filters.isEmpty()){
|
toAdd=toAdd.stream().filter(filterPredicate).collect(Collectors.toList());
|
||||||
toAdd=toAdd.stream().filter(new StatusFilterPredicate(filters)).collect(Collectors.toList());
|
|
||||||
}
|
|
||||||
if(!toAdd.isEmpty()){
|
if(!toAdd.isEmpty()){
|
||||||
prependItems(toAdd, true);
|
prependItems(toAdd, true);
|
||||||
showNewPostsButton();
|
showNewPostsButton();
|
||||||
|
|
Loading…
Reference in New Issue