fixed real time for transfer the ownership and update group/channel info

This commit is contained in:
2025-07-22 17:00:36 +03:30
parent 84890539da
commit 42c92c5a2d
3 changed files with 48 additions and 14 deletions
@@ -873,7 +873,7 @@ public class ActionHandler {
transferOwnershipAndLeave(chat.getId());
} else {
leaveChat(chat.getId(), "group");
refreshChatList();
// refreshChatList();
}
return false;
}
@@ -1395,7 +1395,7 @@ public class ActionHandler {
}
JSONObject selected = admins.getJSONObject(choice);
String newOwnerId = selected.getString("internal_id"); // ✅ اصلاح شده
String newOwnerId = selected.getString("internal_id");
JSONObject promoteReq = new JSONObject();
promoteReq.put("action", "transfer_channel_ownership");