mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 11:50:56 +00:00
Change temporary video sticker check to mime type
This commit is contained in:
parent
67203697f4
commit
3553b36394
@ -479,7 +479,7 @@ public final class TelegramMediaFile: Media, Equatable, Codable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var isVideoSticker: Bool {
|
public var isVideoSticker: Bool {
|
||||||
if let fileName = self.fileName, fileName.hasSuffix(".webm") {
|
if self.mimeType == "video/webm" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if let _ = self.fileName, self.mimeType == "video/webm" {
|
if let _ = self.fileName, self.mimeType == "video/webm" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user