From 70d86345a87994f2f219594b0ecfe236a27d1f4e Mon Sep 17 00:00:00 2001 From: Lakoja Date: Thu, 24 Aug 2023 15:00:52 +0200 Subject: [PATCH] 3891: Match (only) title for muting state --- .../main/java/com/keylesspalace/tusky/StatusListActivity.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/StatusListActivity.kt b/app/src/main/java/com/keylesspalace/tusky/StatusListActivity.kt index 9e4e93052..39cd0ad09 100644 --- a/app/src/main/java/com/keylesspalace/tusky/StatusListActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/StatusListActivity.kt @@ -186,9 +186,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector { { filters -> mutedFilter = filters.firstOrNull { filter -> // TODO shouldn't this be an exact match (only one keyword; exactly the hashtag)? - filter.context.contains(Filter.Kind.HOME.kind) && filter.keywords.any { - it.keyword == hashedTag - } + filter.context.contains(Filter.Kind.HOME.kind) && filter.title == hashedTag } updateTagMuteState(mutedFilter != null) },