mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 16:06:59 +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 {
|
||||
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
|
||||
} else {
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user