allow creator leave group

This commit is contained in:
Riko Sakurauchi 2020-01-04 00:02:24 +08:00
parent 5e246f2bbf
commit 0eca2a70aa
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF
1 changed files with 1 additions and 1 deletions

View File

@ -1722,7 +1722,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
headerItem.addSubItem(delete_history, R.drawable.msg_delete, LocaleController.getString("DeleteAllFromSelf", R.string.DeleteAllFromSelf));
}
if (ChatObject.isChannel(currentChat) && !currentChat.creator) {
if (ChatObject.isChannel(currentChat)) {
if (!ChatObject.isNotInChat(currentChat)) {
if (currentChat.megagroup) {
headerItem.addSubItem(delete_chat, R.drawable.msg_leave, LocaleController.getString("LeaveMegaMenu", R.string.LeaveMegaMenu));