mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -215,13 +215,17 @@ public final class DrawingStickerEntityView: DrawingEntityView {
|
||||
context.draw(image.cgImage!, in: imageRect)
|
||||
}
|
||||
|
||||
var synchronous = false
|
||||
if case let .image(_, type) = self.stickerEntity.content {
|
||||
synchronous = type == .dualPhoto
|
||||
}
|
||||
self.imageNode.setSignal(.single({ arguments -> DrawingContext? in
|
||||
let context = DrawingContext(size: arguments.drawingSize, opaque: false, clear: true)
|
||||
context?.withFlippedContext({ ctx in
|
||||
drawImageWithOrientation(image, size: arguments.drawingSize, in: ctx)
|
||||
})
|
||||
return context
|
||||
}))
|
||||
}), attemptSynchronously: synchronous)
|
||||
self.setNeedsLayout()
|
||||
} else if case let .video(videoPath, image, _) = self.stickerEntity.content {
|
||||
let url = URL(fileURLWithPath: videoPath)
|
||||
|
||||
Reference in New Issue
Block a user