3891: Match (only) title for muting state

This commit is contained in:
Lakoja 2023-08-24 15:00:52 +02:00
parent 35fd702472
commit 70d86345a8
1 changed files with 1 additions and 3 deletions

View File

@ -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)
},