Video editor fixes

This commit is contained in:
Ilya Laktyushin
2020-05-27 23:08:52 +03:00
parent 451e033dd1
commit 0a8428f6b2
6 changed files with 73 additions and 32 deletions

View File

@@ -440,6 +440,15 @@ public final class TelegramMediaFile: Media, Equatable, Codable {
return false
}
public var hasLinkedStickers: Bool {
for attribute in self.attributes {
if case .HasLinkedStickers = attribute {
return true
}
}
return false
}
public var isMusic: Bool {
for attribute in self.attributes {
if case .Audio(false, _, _, _, _) = attribute {