From dd6e794fc5ca5b508421197bc1176bbda177b9b2 Mon Sep 17 00:00:00 2001 From: Chris Tremblay Date: Thu, 4 Jan 2024 11:06:54 -0500 Subject: [PATCH] Update PetStoreAssistantBot.java --- .../chtrembl/petstoreassistant/PetStoreAssistantBot.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/PetStoreAssistantBot.java b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/PetStoreAssistantBot.java index 4d6805a7..6a05aa16 100644 --- a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/PetStoreAssistantBot.java +++ b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/PetStoreAssistantBot.java @@ -81,6 +81,12 @@ protected CompletableFuture onMessageActivity(TurnContext turnContext) { AzurePetStoreSessionInfo azurePetStoreSessionInfo = configureSession(turnContext, text); + // get the text without the session id and csrf token + if(azurePetStoreSessionInfo != null && azurePetStoreSessionInfo.getNewText() != null) + { + text = azurePetStoreSessionInfo.getNewText(); + } + //the client kickoff message if(text.equals("...")) {