Hide Edit button for users


I’m currently using the UIKit and I don’t want the users to be able to change the picture and the name of the channel they have joined, only the Admin should be allowed to do this.

Is there any way to not allow users to edit the name and the picture of a SuperGroup Channel and hide the Edit button in the Channel Information screen of the UIKit?


Hey @Tash

You can hide the edit button following this portion of our docs:

Essentially, when you build the ChannelSettingsFragment, you’ll want to use setUseHeaderRightButton(false). You could add this as a conditional based on the users role in the channel, Operator or normal, or a global role you may set in the users metadata.

1 Like