refactor: remote admin channel validation

This commit is contained in:
andrekir 2024-03-11 22:27:14 -03:00
parent 902d1697a9
commit 5983424d48
2 changed files with 3 additions and 4 deletions

View file

@ -101,7 +101,7 @@ class UsersFragment : ScreenFragment("Users"), Logging {
if (!model.isConnected()) return
val node = nodes[position]
val user = node.user ?: return
val showAdmin = position == 0 || model.adminChannelIndex > 0
val showAdmin = position == 0 || model.hasAdminChannel
val isIgnored = ignoreIncomingList.contains(node.num)
val popup = PopupMenu(requireContext(), view)
popup.inflate(R.menu.menu_nodes)