mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Use modern pipeline for video conversion
This commit is contained in:
@@ -9,13 +9,6 @@ import ComponentFlow
|
||||
import LottieAnimationComponent
|
||||
import ReactionSelectionNode
|
||||
|
||||
public func decodeDrawingEntities(data: Data) -> [DrawingEntity] {
|
||||
if let codableEntities = try? JSONDecoder().decode([CodableDrawingEntity].self, from: data) {
|
||||
return codableEntities.map { $0.entity }
|
||||
}
|
||||
return []
|
||||
}
|
||||
|
||||
private func makeEntityView(context: AccountContext, entity: DrawingEntity) -> DrawingEntityView? {
|
||||
if let entity = entity as? DrawingBubbleEntity {
|
||||
return DrawingBubbleEntityView(context: context, entity: entity)
|
||||
|
||||
Reference in New Issue
Block a user