mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
LocationSharingCoordinator: Handle live location sharing lab flag presentation.
This commit is contained in:
@@ -138,7 +138,7 @@ class LocationSharingViewModel: LocationSharingViewModelType, LocationSharingVie
|
||||
}
|
||||
}
|
||||
|
||||
private func startLiveLocationSharing() {
|
||||
private func checkLocationAuthorizationAndPresentTimerSelector() {
|
||||
|
||||
self.locationSharingService.requestAuthorization { [weak self] authorizationStatus in
|
||||
|
||||
@@ -165,4 +165,17 @@ class LocationSharingViewModel: LocationSharingViewModelType, LocationSharingVie
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func startLiveLocationSharing() {
|
||||
|
||||
guard let completion = completion else {
|
||||
return
|
||||
}
|
||||
|
||||
completion(.showLabFlagPromotionIfNeeded({ liveLocationEnabled in
|
||||
if liveLocationEnabled {
|
||||
self.checkLocationAuthorizationAndPresentTimerSelector()
|
||||
}
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user