Fix peer selection screen not closing

This commit is contained in:
Ilya Laktyushin 2023-02-26 17:22:34 +04:00
parent 8a20ee072d
commit f6ff9b86d0

View File

@ -4254,6 +4254,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
}
if case .user = peerType {
let _ = context.engine.peers.sendBotRequestedPeer(messageId: messageId, buttonId: buttonId, requestedPeerId: peer.id).start()
controller?.dismiss()
} else {
var isChannel = false
if let channel = peer as? TelegramChannel, case .broadcast = channel.info {