From b700ee2967e4a4fa25d7b78235753953b90652af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 25 Feb 2021 10:43:50 +0800 Subject: [PATCH] Fix unexpected action cell --- .../src/main/java/org/telegram/ui/ChatEditActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatEditActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatEditActivity.java index 959c7ce71..2a28ea3fe 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatEditActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatEditActivity.java @@ -818,7 +818,7 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image presentFragment(fragment); }); - if (ChatObject.isChannel(currentChat) || currentChat.gigagroup) { + if ((ChatObject.isChannel(currentChat) || currentChat.gigagroup) && ChatObject.hasAdminRights(currentChat)) { logCell = new TextCell(context); logCell.setText(LocaleController.getString("EventLog", R.string.EventLog), false); logCell.setBackgroundDrawable(Theme.getSelectorDrawable(false));