mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix converting static sticker to video on editing
This commit is contained in:
parent
7526d39b83
commit
2670be22be
@ -207,10 +207,14 @@ public final class MediaEditor {
|
||||
}
|
||||
|
||||
public var resultIsVideo: Bool {
|
||||
if self.values.entities.contains(where: { $0.entity.isAnimated }) {
|
||||
return true
|
||||
}
|
||||
if case let .sticker(file) = self.subject {
|
||||
return file.isAnimatedSticker || file.isVideoSticker
|
||||
} else {
|
||||
return self.player != nil || self.audioPlayer != nil || self.additionalPlayer != nil
|
||||
}
|
||||
return self.player != nil || self.audioPlayer != nil || self.additionalPlayer != nil || self.values.entities.contains(where: { $0.entity.isAnimated })
|
||||
}
|
||||
|
||||
public var resultImage: UIImage? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user