"Info" instead of "Edit" for non-admins

This commit is contained in:
immat0x1
2023-05-14 01:33:29 +05:00
parent f98c962b6f
commit 87d6095002

View File

@@ -589,7 +589,11 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image
linearLayout1.setOrientation(LinearLayout.VERTICAL);
actionBar.setTitle(LocaleController.getString("ChannelEdit", R.string.ChannelEdit));
if (ChatObject.hasAdminRights(currentChat)) {
actionBar.setTitle(LocaleController.getString("ChannelEdit", R.string.ChannelEdit));
} else {
actionBar.setTitle(LocaleController.getString("Info", R.string.Info));
}
avatarContainer = new LinearLayout(context);
avatarContainer.setOrientation(LinearLayout.VERTICAL);