Merge branch 'feature/filters'

This commit is contained in:
LucasGGamerM 2023-02-01 21:44:35 -03:00
commit 27ed78c293
2 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ public class HomeTimelineFragment extends FabStatusListFragment {
} }
private List<Status> filterPosts(List<Status> items) { private List<Status> filterPosts(List<Status> items) {
// This is the function I must use to solve the filters thing for real
return items.stream().filter(i -> return items.stream().filter(i ->
(GlobalUserPreferences.showReplies || i.inReplyToId == null) && (GlobalUserPreferences.showReplies || i.inReplyToId == null) &&
(GlobalUserPreferences.showBoosts || i.reblog == null) (GlobalUserPreferences.showBoosts || i.reblog == null)