Fix input panel hit testing on iPad

This commit is contained in:
Ilya Laktyushin
2023-06-11 15:52:33 +04:00
parent 4347e2eb78
commit 901faa8d75
2 changed files with 7 additions and 2 deletions

View File

@@ -1183,8 +1183,10 @@ func peerInfoHeaderActionButtons(peer: Peer?, isSecretChat: Bool, isContact: Boo
func peerInfoHeaderButtons(peer: Peer?, cachedData: CachedPeerData?, isOpenedFromChat: Bool, isExpanded: Bool, videoCallsEnabled: Bool, isSecretChat: Bool, isContact: Bool, threadInfo: EngineMessageHistoryThread.Info?) -> [PeerInfoHeaderButtonKey] {
var result: [PeerInfoHeaderButtonKey] = []
if let user = peer as? TelegramUser {
if !isOpenedFromChat && isContact {
result.append(.message)
if !isOpenedFromChat {
if isContact || user.botInfo != nil {
result.append(.message)
}
}
var callsAvailable = false
var videoCallsAvailable = false