mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Fix live location prerequirement for proximity alert
This commit is contained in:
@@ -338,6 +338,11 @@ final class LocationViewControllerNode: ViewControllerTracingNode, CLLocationMan
|
||||
}
|
||||
}
|
||||
|
||||
if let activeOwnLiveLocation = activeOwnLiveLocation, let ownLiveLocationStartedAction = strongSelf.ownLiveLocationStartedAction {
|
||||
strongSelf.ownLiveLocationStartedAction = nil
|
||||
ownLiveLocationStartedAction(activeOwnLiveLocation.id)
|
||||
}
|
||||
|
||||
let title: String
|
||||
let subtitle: String
|
||||
let beginTime: Double?
|
||||
@@ -602,6 +607,8 @@ final class LocationViewControllerNode: ViewControllerTracingNode, CLLocationMan
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var ownLiveLocationStartedAction: ((MessageId) -> Void)?
|
||||
|
||||
func showAll() {
|
||||
self.headerNode.mapNode.showAll()
|
||||
|
||||
Reference in New Issue
Block a user