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 -> { filters ->
mutedFilter = filters.firstOrNull { filter -> mutedFilter = filters.firstOrNull { filter ->
// TODO shouldn't this be an exact match (only one keyword; exactly the hashtag)? // TODO shouldn't this be an exact match (only one keyword; exactly the hashtag)?
filter.context.contains(Filter.Kind.HOME.kind) && filter.keywords.any { filter.context.contains(Filter.Kind.HOME.kind) && filter.title == hashedTag
it.keyword == hashedTag
}
} }
updateTagMuteState(mutedFilter != null) updateTagMuteState(mutedFilter != null)
}, },