Skip to content

Commit

Permalink
Update PetStoreAssistantBot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Nov 8, 2023
1 parent e43a48b commit efe148c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,13 @@ else if (sessionID != null && csrfToken != null) {
break;
}

return turnContext.sendActivity(
//only respond to the user if the user sent something (seems to be a bug where initial messages are sent without a prompt while page loads)
if(StringUtils.isNotEmpty(text))
{
return turnContext.sendActivity(
MessageFactory.text(dpResponse.getDpResponseText())).thenApply(sendResult -> null);
}
return null;
}

@Override
Expand Down

0 comments on commit efe148c

Please sign in to comment.