mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Partial fix of #444
It is possible to implement what the web does but that adds additional resources which I believe is not justified. Filtering is meant to be precise. Even hiding the entire block that you still would like to take a look at the content, then why would you set up a certain filter then. Though showing the matched filter is still useful.
This commit is contained in:
@ -58,12 +58,9 @@ const TimelineDefault: React.FC<Props> = ({
|
||||
complete: false
|
||||
})
|
||||
|
||||
if (
|
||||
queryKey &&
|
||||
shouldFilter({ copiableContent, status: actualStatus, queryKey }) &&
|
||||
!highlighted
|
||||
) {
|
||||
return <TimelineFiltered />
|
||||
const filtered = queryKey && shouldFilter({ copiableContent, status: actualStatus, queryKey })
|
||||
if (queryKey && filtered && !highlighted) {
|
||||
return <TimelineFiltered phrase={filtered} />
|
||||
}
|
||||
|
||||
const onPress = useCallback(() => {
|
||||
|
Reference in New Issue
Block a user