Merge commit 'a3ba953b24cc3edafa72a635ff4b9d1913e2470f'

This commit is contained in:
Ali 2021-04-13 22:56:52 +04:00
commit c12e2077f2

View File

@ -425,6 +425,8 @@ public final class TelegramMediaFile: Media, Equatable, Codable {
if case .Sticker = attribute {
if let s = self.size, s < 300 * 1024 {
return !isAnimatedSticker
} else if self.size == nil {
return !isAnimatedSticker
}
}
}