3891: Match (only) title for muting state
This commit is contained in:
parent
35fd702472
commit
70d86345a8
|
@ -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)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue