Skip to content

Commit

Permalink
fix(thread-fragments): never filter with a warning the main status
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Jul 6, 2024
1 parent 113b47d commit 4a78395
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ protected List<StatusDisplayItem> buildDisplayItems(Status s){
flags |= StatusDisplayItem.FLAG_NO_TRANSLATE;
if(!GlobalUserPreferences.showMediaPreview)
flags |= StatusDisplayItem.FLAG_NO_MEDIA_PREVIEW;
return StatusDisplayItem.buildItems(this, s, accountID, s, knownAccounts, getFilterContext(), isMainThreadStatus ? 0 : flags);
/* MOSHIDON: we make the filterContext null in the main status in the thread fragment, so that the main status is never filtered (because you just clicked on it).
This also restores old behavior that got lost to time and changes in the filter system */
return StatusDisplayItem.buildItems(this, s, accountID, s, knownAccounts, isMainThreadStatus ? null : getFilterContext(), isMainThreadStatus ? 0 : flags);
}

protected abstract FilterContext getFilterContext();
Expand Down

0 comments on commit 4a78395

Please sign in to comment.