diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java index 9fde40bc51..ef8d0aa940 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatRightsEditActivity.java @@ -538,6 +538,11 @@ public void onScrollStateChanged(RecyclerView recyclerView, int newState) { }); listView.setOnItemClickListener((view, position) -> { + if (((currentType == TYPE_ADMIN && currentUser != null) || canEdit) && position == 0) { + Bundle args = new Bundle(); + args.putLong("user_id", currentUser.id); + presentFragment(new ProfileActivity(args)); + } if (!canEdit && (!currentChat.creator || currentType != TYPE_ADMIN || position != anonymousRow)) { return; } @@ -560,11 +565,12 @@ public void onScrollStateChanged(RecyclerView recyclerView, int newState) { } return; } - if (position == 0) { - Bundle args = new Bundle(); - args.putLong("user_id", currentUser.id); - presentFragment(new ProfileActivity(args)); - } else if (position == removeAdminRow) { +// if (position == 0) { +// Bundle args = new Bundle(); +// args.putLong("user_id", currentUser.id); +// presentFragment(new ProfileActivity(args)); +// } else + if (position == removeAdminRow) { if (currentType == TYPE_ADMIN) { MessagesController.getInstance(currentAccount).setUserAdminRole(chatId, currentUser, new TLRPC.TL_chatAdminRights(), currentRank, isChannel, getFragmentForAlert(0), isAddingNew, false, null, null); if (delegate != null) {