diff --git a/src/components/Camera/helpers/savePhotosToPhotoLibrary.ts b/src/components/Camera/helpers/savePhotosToPhotoLibrary.ts index 169fc3593..e08fa1046 100644 --- a/src/components/Camera/helpers/savePhotosToPhotoLibrary.ts +++ b/src/components/Camera/helpers/savePhotosToPhotoLibrary.ts @@ -83,8 +83,7 @@ async function savePhotosToPhotoLibrary( } // This means an iOS user denied access // (https://developer.apple.com/documentation/photokit/phphotoserror/code/accessuserdenied). - // This can happen if the user revokes permission after we checked, - // so we silently skip saving. + // We no longer ask multipe times, so we just continue if ( error.message.match( /error 3311/ ) ) { return savedUris; } diff --git a/src/components/Camera/hooks/usePrepareStoreAndNavigate.ts b/src/components/Camera/hooks/usePrepareStoreAndNavigate.ts index 2e46ee3c9..37905b4be 100644 --- a/src/components/Camera/hooks/usePrepareStoreAndNavigate.ts +++ b/src/components/Camera/hooks/usePrepareStoreAndNavigate.ts @@ -77,6 +77,9 @@ const usePrepareStoreAndNavigate = ( ) => { ) => { const newObservation = await Observation.new( ); + // 20240709 amanda - this is temporary since we'll want to move this code to + // Suggestions after the changes to permissions github issue is complete, and + // we'll be able to updateObservationKeys on the observation there if ( userLocation?.latitude ) { const placeName = await fetchPlaceName( userLocation.latitude, userLocation.longitude ); newObservation.latitude = userLocation?.latitude;