mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-06 06:13:10 +00:00
Don't display secret animated stickers
This commit is contained in:
parent
0d442f04d7
commit
c4ffda2eba
@ -371,7 +371,13 @@ public final class ChatMessageItem: ListViewItem, CustomStringConvertible {
|
|||||||
loop: for media in self.message.media {
|
loop: for media in self.message.media {
|
||||||
if let telegramFile = media as? TelegramMediaFile {
|
if let telegramFile = media as? TelegramMediaFile {
|
||||||
if telegramFile.isAnimatedSticker, !telegramFile.previewRepresentations.isEmpty, let size = telegramFile.size, size > 0 && size <= 128 * 1024 {
|
if telegramFile.isAnimatedSticker, !telegramFile.previewRepresentations.isEmpty, let size = telegramFile.size, size > 0 && size <= 128 * 1024 {
|
||||||
|
if self.message.id.peerId.namespace == Namespaces.Peer.SecretChat {
|
||||||
|
if telegramFile.fileId.namespace == Namespaces.Media.CloudFile {
|
||||||
viewClassName = ChatMessageAnimatedStickerItemNode.self
|
viewClassName = ChatMessageAnimatedStickerItemNode.self
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
viewClassName = ChatMessageAnimatedStickerItemNode.self
|
||||||
|
}
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
for attribute in telegramFile.attributes {
|
for attribute in telegramFile.attributes {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user