Various improvements

This commit is contained in:
Ilya Laktyushin
2023-10-18 23:59:56 +04:00
parent 597fd71285
commit 7fbac7ddc0
42 changed files with 1092 additions and 791 deletions

View File

@@ -243,6 +243,17 @@ public extension Peer {
}
return false
}
var backgroundEmojiId: Int64? {
switch self {
case let user as TelegramUser:
return user.backgroundEmojiId
case let channel as TelegramChannel:
return channel.backgroundEmojiId
default:
return nil
}
}
}
public extension TelegramPeerUsername {