Cleaner code
This commit is contained in:
parent
c071dc502e
commit
ec498cf054
|
@ -441,15 +441,9 @@ class RoomListSectionBuilderSpace(
|
|||
)
|
||||
}
|
||||
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL -> {
|
||||
if (currentSpace == null) {
|
||||
copy(
|
||||
spaceFilter = null
|
||||
spaceFilter = currentSpace?.let { SpaceFilter.ActiveSpace(it) }
|
||||
)
|
||||
} else {
|
||||
copy(
|
||||
spaceFilter = SpaceFilter.ActiveSpace(currentSpace)
|
||||
)
|
||||
}
|
||||
}
|
||||
RoomListViewModel.SpaceFilterStrategy.NONE -> this
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue