mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
mime-type is enough to check for animated sticker
This commit is contained in:
parent
c979c688a3
commit
23b3200f0a
@ -364,7 +364,7 @@ public final class TelegramMediaFile: Media, Equatable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var isAnimatedSticker: Bool {
|
public var isAnimatedSticker: Bool {
|
||||||
if let fileName = self.fileName, fileName.hasSuffix(".tgs"), self.mimeType == "application/x-tgsticker" {
|
if let fileName = self.fileName, self.mimeType == "application/x-tgsticker" {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user