Rocket.Chat.Android
Rocket.Chat.Android copied to clipboard
Settings are always shown despite the "isVisible" set to false
Describe the bug
In 44f2242f078801ed09a67b482be0225de5780634 has been introduced the group ViewGroup from the ConstraintLayout in the fragment_settings_layout, it is pretty useful BUT it makes useless any changes on the visibility of the views inside it.
e.g. if I have a group with view a and b, and I set b.visibility = gone, it just won't work, because a and b are bound to the visibility of the group they are in.
In such scenario the settings, and particularly Administration and Delete Account are always shown despite they should be hidden.
To Reproduce
Log in with a user who does not have admin permission nor delete account permission, you will still be able to see those settings.
Devices and Versions
Your Rocket.Chat.Android version: 3.5.1)