Fix filter search bug (#1427)

* Fix filter search bug

* refractor
This commit is contained in:
Mateusz Idziejczak 2021-08-07 10:27:51 +02:00 committed by GitHub
parent b61e63249c
commit ec6d18968f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,9 @@ class MessageTabPresenter @Inject constructor(
.debounce(250) .debounce(250)
.map { query -> .map { query ->
lastSearchQuery = query lastSearchQuery = query
getFilteredData(query) val isOnlyUnread = view?.onlyUnread == true
val isOnlyWithAttachments = view?.onlyWithAttachments == true
getFilteredData(query, isOnlyUnread, isOnlyWithAttachments)
} }
.catch { Timber.e(it) } .catch { Timber.e(it) }
.collect { .collect {