GIFs in media editor

Image search in media editor
This commit is contained in:
Ilya Laktyushin
2023-08-07 08:38:02 +02:00
parent 9ddb8fa2d6
commit b71304a3d2
24 changed files with 1231 additions and 686 deletions

View File

@@ -759,7 +759,7 @@ private final class DrawingScreenComponent: CombinedComponent {
emojiItems,
stickerItems
) |> map { emoji, stickers -> StickerPickerInputData in
return StickerPickerInputData(emoji: emoji, stickers: stickers, masks: nil)
return StickerPickerInputData(emoji: emoji, stickers: stickers, gifs: nil)
}
stickerPickerInputData.set(signal)
@@ -3057,9 +3057,7 @@ public final class DrawingToolsInteraction {
var isVideo = false
if let entity = entityView.entity as? DrawingStickerEntity {
if case .video = entity.content {
isVideo = true
} else if case .dualVideoReference = entity.content {
if case .dualVideoReference = entity.content {
isVideo = true
}
}