6071: refacto according to PR comments

This commit is contained in:
MaximeE
2022-05-04 11:23:43 +02:00
parent 9248623c16
commit 72ec0e3bf2
3 changed files with 22 additions and 20 deletions
@@ -74,8 +74,11 @@ class LocationSharingViewModel: LocationSharingViewModelType, LocationSharingVie
completion?(.share(latitude: pinLocation.latitude, longitude: pinLocation.longitude, coordinateType: .pin))
case .goToUserLocation:
state.bindings.pinLocation = nil
case .startLiveSharing:
state.bindings.showingTimerSelector = true
case .shareLiveLocation(let timeout):
completion?(.shareLiveLocation(timeout: timeout))
state.bindings.showingTimerSelector = false
completion?(.shareLiveLocation(timeout: timeout.rawValue))
}
}