mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-28 02:20:10 +01:00
code review
This commit is contained in:
parent
1b16d287e8
commit
bcf755407b
@ -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 New Issue
Block a user