From 4a783957edf907b84463cd3af7728f098d256c76 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 6 Jul 2024 20:59:53 -0300 Subject: [PATCH] fix(thread-fragments): never filter with a warning the main status --- .../joinmastodon/android/fragments/StatusListFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java index c9f65ac5d..d6686d4b0 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusListFragment.java @@ -61,7 +61,9 @@ public abstract class StatusListFragment extends BaseStatusListFragment 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();