mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +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 {
|
for attribute in telegramFile.attributes {
|
||||||
switch attribute {
|
switch attribute {
|
||||||
case .Sticker:
|
case .Sticker:
|
||||||
viewClassName = ChatMessageStickerItemNode.self
|
if let size = telegramFile.size, size > 0 && size <= 512 * 1024 {
|
||||||
|
viewClassName = ChatMessageStickerItemNode.self
|
||||||
|
}
|
||||||
break loop
|
break loop
|
||||||
case let .Video(_, _, flags):
|
case let .Video(_, _, flags):
|
||||||
if flags.contains(.instantRoundVideo) {
|
if flags.contains(.instantRoundVideo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user