mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix converting static sticker to video on editing
This commit is contained in:
parent
7526d39b83
commit
2670be22be
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue