diff --git a/app/controllers/idv/cancellations_controller.rb b/app/controllers/idv/cancellations_controller.rb index bc22186dc43..2346b577fd8 100644 --- a/app/controllers/idv/cancellations_controller.rb +++ b/app/controllers/idv/cancellations_controller.rb @@ -46,9 +46,6 @@ def reset_doc_auth end def cancel_document_capture_session - # Goal: reset the Idv::Steps::LinkSentStep but we don't have access to the - # flow_session from here (because this is the mobile session and that is only - # on the desktop session) document_capture_session&.update(cancelled_at: Time.zone.now) end diff --git a/app/services/idv/steps/link_sent_step.rb b/app/services/idv/steps/link_sent_step.rb index a421440e6aa..5301f1b1874 100644 --- a/app/services/idv/steps/link_sent_step.rb +++ b/app/services/idv/steps/link_sent_step.rb @@ -28,9 +28,9 @@ def handle_document_verification_failure(get_results_response) end def render_document_capture_cancelled - failure(I18n.t('errors.doc_auth.document_capture_cancelled')) mark_steps_incomplete redirect_to idv_url + failure(I18n.t('errors.doc_auth.document_capture_cancelled')) end def render_step_incomplete_error diff --git a/app/services/idv/steps/send_link_step.rb b/app/services/idv/steps/send_link_step.rb index a4920b6be88..c79dd9b0d4a 100644 --- a/app/services/idv/steps/send_link_step.rb +++ b/app/services/idv/steps/send_link_step.rb @@ -54,10 +54,6 @@ def formatted_destination_phone def update_document_capture_session_requested_at(session_uuid) document_capture_session = DocumentCaptureSession.find_by(uuid: session_uuid) - if document_capture_session.cancelled_at - # See note at CancellationsController#cancel_document_capture_session - flow_session.delete(Idv::Steps::LinkSentStep.name) - end return unless document_capture_session document_capture_session.update!( requested_at: Time.zone.now,