1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

Fix unexpected action cell

This commit is contained in:
世界 2021-02-25 10:43:50 +08:00
parent 2ce54d1bac
commit b700ee2967
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -818,7 +818,7 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image
presentFragment(fragment); presentFragment(fragment);
}); });
if (ChatObject.isChannel(currentChat) || currentChat.gigagroup) { if ((ChatObject.isChannel(currentChat) || currentChat.gigagroup) && ChatObject.hasAdminRights(currentChat)) {
logCell = new TextCell(context); logCell = new TextCell(context);
logCell.setText(LocaleController.getString("EventLog", R.string.EventLog), false); logCell.setText(LocaleController.getString("EventLog", R.string.EventLog), false);
logCell.setBackgroundDrawable(Theme.getSelectorDrawable(false)); logCell.setBackgroundDrawable(Theme.getSelectorDrawable(false));