mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix live location start from modal location display
This commit is contained in:
@@ -485,7 +485,9 @@ final class LocationViewControllerNode: ViewControllerTracingNode, CLLocationMan
|
||||
|
||||
if !strongSelf.reportedAnnotationsReady {
|
||||
strongSelf.reportedAnnotationsReady = true
|
||||
strongSelf.onAnnotationsReady?()
|
||||
if annotations.count > 0 {
|
||||
strongSelf.onAnnotationsReady?()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -496,7 +498,7 @@ final class LocationViewControllerNode: ViewControllerTracingNode, CLLocationMan
|
||||
}
|
||||
let rightBarButtonAction: LocationViewRightBarButton
|
||||
if location.liveBroadcastingTimeout != nil {
|
||||
if liveLocations.count > 1 {
|
||||
if annotations.count > 0 {
|
||||
rightBarButtonAction = .showAll
|
||||
} else {
|
||||
rightBarButtonAction = .none
|
||||
|
||||
Reference in New Issue
Block a user