mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Refactoring
This commit is contained in:
parent
a4d630bf24
commit
16c630b946
83 changed files with 838 additions and 889 deletions
|
|
@ -27,7 +27,6 @@ import InstantPageUI
|
|||
import InstantPageCache
|
||||
import LocalAuth
|
||||
import OpenInExternalAppUI
|
||||
import ShareController
|
||||
import UndoUI
|
||||
import AvatarNode
|
||||
import OverlayStatusController
|
||||
|
|
@ -3940,11 +3939,10 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||
guard let self else {
|
||||
return
|
||||
}
|
||||
let shareController = ShareController(context: context, subject: .url("https://t.me/\(addressName)?profile"))
|
||||
shareController.actionCompleted = { [weak self] in
|
||||
let shareController = context.sharedContext.makeShareController(context: context, params: ShareControllerParams(subject: .url("https://t.me/\(addressName)?profile"), actionCompleted: { [weak self] in
|
||||
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
|
||||
self?.present(UndoOverlayController(presentationData: presentationData, content: .linkCopied(title: nil, text: presentationData.strings.Conversation_LinkCopied), elevatedLayout: false, animateInAsReplacement: false, action: { _ in return false }), in: .window(.root))
|
||||
}
|
||||
}))
|
||||
self.present(shareController, in: .window(.root))
|
||||
})))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue