diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/SenderSelectPopup.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/SenderSelectPopup.java index 1675fb121..cb8dcbb6c 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/SenderSelectPopup.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/SenderSelectPopup.java @@ -147,7 +147,7 @@ public class SenderSelectPopup extends ActionBarPopupWindow { var chat = messagesController.getChat(chatFull.id); if (chat != null && chat.creator) { if (peers.stream().noneMatch(peer -> peer.peer.channel_id == chat.id)) { - peers.add(0, new TLRPC.TL_sendAsPeer() {{ + peers.add(peers.size() >= 1 ? 1 : 0, new TLRPC.TL_sendAsPeer() {{ peer = new TLRPC.TL_peerChannel() {{ channel_id = chat.id; }}; }}); }