Skip to content

Commit

Permalink
fix: Do not always hide the component
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 2, 2023
1 parent 25f73eb commit 3d0fc1d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ public boolean isFiltered(@Nullable String identifier, String path, byte[] proto
if (matchedGroup != custom && exceptions.matches(path))
return false; // Exceptions are not filtered.

if (matchedGroup == searchResultShelfHeader && matchedIndex == 0) return true;
// TODO: This also hides the feed Shorts shelf header
if (matchedGroup == searchResultShelfHeader && matchedIndex != 0) return false;

return super.isFiltered(identifier, path, protobufBufferArray, matchedList, matchedGroup, matchedIndex);
}
Expand Down

0 comments on commit 3d0fc1d

Please sign in to comment.