Codes improvements

This commit is contained in:
Ilya Laktyushin
2024-09-21 02:24:36 +04:00
parent 8430789c5d
commit ab6d94b4eb
10 changed files with 36 additions and 21 deletions

View File

@@ -806,7 +806,7 @@ public final class ChatListSearchContainerNode: SearchDisplayControllerContentNo
var type: PeerType = .group
for message in messages {
if let user = message.author?._asPeer() as? TelegramUser {
if user.botInfo != nil {
if user.botInfo != nil && !user.id.isVerificationCodes {
type = .bot
} else {
type = .user