From 1970723e0386d70f645502d04cf61e08f89e98da Mon Sep 17 00:00:00 2001 From: danielevalverde Date: Tue, 27 Aug 2024 16:42:02 -0300 Subject: [PATCH] apply PR review --- app/models/bot/smooch.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/bot/smooch.rb b/app/models/bot/smooch.rb index d59cf30e6..c148e06d1 100644 --- a/app/models/bot/smooch.rb +++ b/app/models/bot/smooch.rb @@ -358,6 +358,8 @@ def self.start_flow(workflow, language, uid) def self.parse_query_message(message, app_id, uid, workflow, language) sm = CheckStateMachine.new(uid) + if self.process_menu_option(message, sm.state.value, app_id) + # Do nothing else - the action will be executed by "process_menu_option" method sm.go_to_ask_if_ready unless sm.state.value == 'ask_if_ready' self.ask_if_ready_to_submit(uid, workflow, 'ask_if_ready', language) end