Photo editor fixes

This commit is contained in:
Ilya Laktyushin
2020-06-08 13:30:18 +03:00
parent f529ec0793
commit e7b181e12a
8 changed files with 71 additions and 26 deletions

View File

@@ -178,6 +178,8 @@ class WebSearchControllerNode: ASDisplayNode {
var cancel: (() -> Void)?
var dismissInput: (() -> Void)?
var presentStickers: ((@escaping (TelegramMediaFile, Bool, UIView, CGRect) -> Void) -> TGPhotoPaintStickersScreen?)?
init(context: AccountContext, presentationData: PresentationData, controllerInteraction: WebSearchControllerInteraction, peer: Peer?, mode: WebSearchMode) {
self.context = context
self.theme = presentationData.theme
@@ -703,7 +705,7 @@ class WebSearchControllerNode: ASDisplayNode {
strongSelf.controllerInteraction.sendSelected(results, result)
strongSelf.cancel?()
}
}, present: present)
}, presentStickers: self.presentStickers, present: present)
}
} else {
if let results = self.currentProcessedResults?.results {