Small improvement
This commit is contained in:
parent
c0842d4da7
commit
8170f523e0
|
@ -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 New Issue