mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -87,7 +87,7 @@ final class ShareControllerNode: ViewControllerTracingNode, UIScrollViewDelegate
|
||||
|
||||
private let showNames = ValuePromise<Bool>(true)
|
||||
|
||||
init(environment: ShareControllerEnvironment, presentationData: PresentationData, presetText: String?, defaultAction: ShareControllerAction?, requestLayout: @escaping (ContainedViewLayoutTransition) -> Void, presentError: @escaping (String?, String) -> Void, externalShare: Bool, immediateExternalShare: Bool, immediatePeerId: PeerId?, fromForeignApp: Bool, forceTheme: PresentationTheme?, fromPublicChannel: Bool, segmentedValues: [ShareControllerSegmentedValue]?) {
|
||||
init(environment: ShareControllerEnvironment, presentationData: PresentationData, presetText: String?, defaultAction: ShareControllerAction?, requestLayout: @escaping (ContainedViewLayoutTransition) -> Void, presentError: @escaping (String?, String) -> Void, externalShare: Bool, immediateExternalShare: Bool, immediatePeerId: PeerId?, fromForeignApp: Bool, forceTheme: PresentationTheme?, fromPublicChannel: Bool, segmentedValues: [ShareControllerSegmentedValue]?, shareStory: (() -> Void)?) {
|
||||
self.environment = environment
|
||||
self.presentationData = presentationData
|
||||
self.forceTheme = forceTheme
|
||||
@@ -318,6 +318,13 @@ final class ShareControllerNode: ViewControllerTracingNode, UIScrollViewDelegate
|
||||
strongSelf.closePeerTopics(peer.peerId, selected: true)
|
||||
})
|
||||
}
|
||||
}, shareStory: shareStory.flatMap { shareStory in
|
||||
return { [weak self] in
|
||||
self?.animateOut(shared: false, completion: { [weak self] in
|
||||
self?.dismiss?(false)
|
||||
})
|
||||
shareStory()
|
||||
}
|
||||
})
|
||||
|
||||
self.backgroundColor = nil
|
||||
|
||||
Reference in New Issue
Block a user