mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 07:57:01 +00:00
Don't treat heavy WebP files as stickers
This commit is contained in:
parent
ccba9ac723
commit
9e57955cfb
@ -358,7 +358,9 @@ public final class ChatMessageItem: ListViewItem, CustomStringConvertible {
|
||||
for attribute in telegramFile.attributes {
|
||||
switch attribute {
|
||||
case .Sticker:
|
||||
viewClassName = ChatMessageStickerItemNode.self
|
||||
if let size = telegramFile.size, size > 0 && size <= 512 * 1024 {
|
||||
viewClassName = ChatMessageStickerItemNode.self
|
||||
}
|
||||
break loop
|
||||
case let .Video(_, _, flags):
|
||||
if flags.contains(.instantRoundVideo) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user