mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Small improvement
This commit is contained in:
parent
c0842d4da7
commit
8170f523e0
3 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ class RoomListNameFilter @Inject constructor() : Predicate<RoomSummary> {
|
|||
var filter: String = ""
|
||||
|
||||
override fun test(roomSummary: RoomSummary): Boolean {
|
||||
if (filter.isBlank()) {
|
||||
if (filter.isEmpty()) {
|
||||
// No filter
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -203,7 +203,7 @@ class RoomMemberListViewModel @AssistedInject constructor(@Assisted initialState
|
|||
}
|
||||
}
|
||||
|
||||
private fun handleFilterMemberList(action: RoomMemberListAction.FilterMemberList) = withState {
|
||||
private fun handleFilterMemberList(action: RoomMemberListAction.FilterMemberList) {
|
||||
setState {
|
||||
copy(
|
||||
filter = action.searchTerm
|
||||
|
|
|
@ -25,7 +25,7 @@ class RoomMemberSummaryFilter @Inject constructor() : Predicate<RoomMemberSummar
|
|||
var filter: String = ""
|
||||
|
||||
override fun test(roomMemberSummary: RoomMemberSummary): Boolean {
|
||||
if (filter.isBlank()) {
|
||||
if (filter.isEmpty()) {
|
||||
// No filter
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue