mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Story locations
This commit is contained in:
@@ -84,6 +84,8 @@ public final class LocationViewController: ViewController {
|
||||
private var interaction: LocationViewInteraction?
|
||||
|
||||
private var rightBarButtonAction: LocationViewRightBarButton = .none
|
||||
|
||||
public var dismissed: () -> Void = {}
|
||||
|
||||
public init(context: AccountContext, updatedPresentationData: (initial: PresentationData, signal: Signal<PresentationData, NoError>)? = nil, subject: EngineMessage, params: LocationViewParams) {
|
||||
self.context = context
|
||||
@@ -527,5 +529,10 @@ public final class LocationViewController: ViewController {
|
||||
@objc private func showAllPressed() {
|
||||
self.controllerNode.showAll()
|
||||
}
|
||||
|
||||
public override func dismiss(completion: (() -> Void)? = nil) {
|
||||
super.dismiss(completion: completion)
|
||||
self.dismissed()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user