mirror of https://github.com/NekoX-Dev/NekoX.git
fix ChatEditActivity with no admin rights
This commit is contained in:
parent
11f055d23f
commit
f8a72d335e
|
@ -915,11 +915,6 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ChatObject.hasAdminRights(currentChat)) {
|
|
||||||
infoContainer.setVisibility(View.GONE);
|
|
||||||
settingsTopSectionCell.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (stickersCell == null) {
|
if (stickersCell == null) {
|
||||||
infoSectionCell = new ShadowSectionCell(context);
|
infoSectionCell = new ShadowSectionCell(context);
|
||||||
linearLayout1.addView(infoSectionCell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT));
|
linearLayout1.addView(infoSectionCell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT));
|
||||||
|
|
Loading…
Reference in New Issue