Fix live location start from modal location display

This commit is contained in:
Ilya Laktyushin
2020-10-29 00:09:07 +04:00
parent 2f13d11224
commit 0e3b3429dc
3 changed files with 16 additions and 9 deletions

View File

@@ -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