mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -3127,6 +3127,12 @@ public final class DrawingToolsInteraction {
|
||||
if let entityView = self.entitiesView.getView(for: entity.uuid) {
|
||||
if let textEntityView = entityView as? DrawingTextEntityView {
|
||||
textEntityView.beginEditing(accessoryView: self.textEditAccessoryView)
|
||||
|
||||
textEntityView.replaceWithImage = { [weak self] image, isSticker in
|
||||
if let self {
|
||||
self.insertEntity(DrawingStickerEntity(content: .image(image, isSticker ? .sticker : .rectangle)), scale: 2.5)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if self.isVideo {
|
||||
entityView.seek(to: 0.0)
|
||||
|
||||
Reference in New Issue
Block a user