mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Share actual sticker pack url
This commit is contained in:
parent
76535d587d
commit
c929cce94f
@ -390,11 +390,12 @@ private final class StickerPackContainer: ASDisplayNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc private func morePressed(node: ContextReferenceContentNode, gesture: ContextGesture?) {
|
@objc private func morePressed(node: ContextReferenceContentNode, gesture: ContextGesture?) {
|
||||||
guard let controller = self.controller else {
|
guard let controller = self.controller, let (info, _, _) = self.currentStickerPack else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let strings = self.presentationData.strings
|
let strings = self.presentationData.strings
|
||||||
let link = "https://t.me/addstickers/\("test")"
|
|
||||||
|
let link = "https://t.me/addstickers/\(info.shortName)"
|
||||||
|
|
||||||
var items: [ContextMenuItem] = []
|
var items: [ContextMenuItem] = []
|
||||||
items.append(.action(ContextMenuActionItem(text: strings.StickerPack_Share, icon: { theme in
|
items.append(.action(ContextMenuActionItem(text: strings.StickerPack_Share, icon: { theme in
|
||||||
@ -429,7 +430,7 @@ private final class StickerPackContainer: ASDisplayNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc func buttonPressed() {
|
@objc func buttonPressed() {
|
||||||
guard let (info, items, installed) = currentStickerPack else {
|
guard let (info, items, installed) = self.currentStickerPack else {
|
||||||
self.requestDismiss()
|
self.requestDismiss()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -1096,6 +1097,26 @@ private final class StickerPackScreenNode: ViewControllerTracingNode {
|
|||||||
self.animateOut(completion: { [weak self] in
|
self.animateOut(completion: { [weak self] in
|
||||||
self?.dismissed()
|
self?.dismissed()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
self.dismissAllTooltips()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func dismissAllTooltips() {
|
||||||
|
guard let controller = self.controller else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
controller.window?.forEachController({ controller in
|
||||||
|
if let controller = controller as? UndoOverlayController, !controller.keepOnParentDismissal {
|
||||||
|
controller.dismissWithCommitAction()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
controller.forEachController({ controller in
|
||||||
|
if let controller = controller as? UndoOverlayController, !controller.keepOnParentDismissal {
|
||||||
|
controller.dismissWithCommitAction()
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user