mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-29 14:40:42 +00:00
Don't donate send message intent for bots and support chats
This commit is contained in:
parent
c6dac0852c
commit
06565ddd24
@ -8082,7 +8082,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
}
|
||||
}
|
||||
|> deliverOnMainQueue).start(next: { [weak self] peer, avatarImage in
|
||||
if let strongSelf = self, let peer = peer as? TelegramUser {
|
||||
if let strongSelf = self, let peer = peer as? TelegramUser, peer.botInfo == nil && !peer.flags.contains(.isSupport) {
|
||||
let recipientHandle = INPersonHandle(value: "tg\(peerId.id)", type: .unknown)
|
||||
var nameComponents = PersonNameComponents()
|
||||
nameComponents.givenName = peer.firstName
|
||||
|
Loading…
x
Reference in New Issue
Block a user