code review

This commit is contained in:
Valere 2021-05-14 17:18:06 +02:00
parent 1b16d287e8
commit bcf755407b
1 changed files with 2 additions and 6 deletions

View File

@ -89,12 +89,8 @@ class SpaceDirectoryFragment @Inject constructor(
}
override fun onPrepareOptionsMenu(menu: Menu) = withState(viewModel) { state ->
menu.findItem(R.id.spaceAddRoom)?.let {
it.isVisible = state.canAddRooms
}
menu.findItem(R.id.spaceCreateRoom)?.let {
it.isVisible = false // Not yet implemented
}
menu.findItem(R.id.spaceAddRoom)?.isVisible = state.canAddRooms
menu.findItem(R.id.spaceCreateRoom)?.isVisible = false // Not yet implemented
super.onPrepareOptionsMenu(menu)
}