Custom contact photos [skip ci]

This commit is contained in:
Ilya Laktyushin
2022-12-06 16:03:53 +04:00
parent d4e55712e5
commit 5788f4a1ac
37 changed files with 1666 additions and 340 deletions

View File

@@ -37,13 +37,14 @@ func presentLegacyWebSearchEditor(context: AccountContext, theme: PresentationTh
legacyController.bind(controller: controller)
controller.editingContext = TGMediaEditingContext()
controller.didFinishEditing = { [weak controller] _, result, _, hasChanges in
controller.didFinishEditing = { [weak controller] _, result, _, hasChanges, commit in
if !hasChanges {
return
}
if let result = result {
completed(result)
}
commit?()
controller?.dismiss(animated: true)
}
controller.requestThumbnailImage = { _ -> SSignal in