mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Custom contact photos [skip ci]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user