Skip to content

Commit

Permalink
fix(get-client-filters): only add client filters if status is not pre…
Browse files Browse the repository at this point in the history
…viously filtered
  • Loading branch information
LucasGGamerM committed May 11, 2024
1 parent 368e226 commit 129ce09
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ public static ArrayList<StatusDisplayItem> buildItems(BaseStatusListFragment<?>
LegacyFilter applyingFilter=null;
if(status.filtered!=null){
List<FilterResult> filters = status.filtered;
filters.addAll(AccountSessionManager.get(accountID).getClientSideFilters(status));

// Only add client filters if there are no pre-existing status filter
if(filters.isEmpty())
filters.addAll(AccountSessionManager.get(accountID).getClientSideFilters(status));

for(FilterResult filter:filters){
LegacyFilter f=filter.filter;
Expand Down

0 comments on commit 129ce09

Please sign in to comment.