mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
code review
This commit is contained in:
parent
1b16d287e8
commit
bcf755407b
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue