Skip to content

Conversation

@tracyboehrer
Copy link
Member

Fixes #859

@tracyboehrer tracyboehrer requested review from axelsrz and gabog March 12, 2020 14:48
def __is_eoc_coming_from_parent(turn_context: TurnContext) -> bool:
# To determine the direction we check callerId property which is set to the parent bot
# by the BotFrameworkHttpClient on outgoing requests.
return not turn_context.activity.caller_id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the return value should be:
return bool(turn_context.activity.caller_id)

@axelsrz axelsrz self-requested a review March 12, 2020 16:13
Copy link
Contributor

@gabog gabog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change to set the caller ID in a different PR?
microsoft/botbuilder-dotnet@3730963#diff-51b4b90671d9033d3ef08fa3aadb2feb

@axelsrz axelsrz requested a review from gabog March 12, 2020 16:22
@axelsrz axelsrz merged commit 7e2fbad into master Mar 12, 2020
@axelsrz axelsrz deleted the trboehre/eoc-handling branch March 12, 2020 16:43
axelsrz added a commit that referenced this pull request Mar 12, 2020
* Skills: Cancel dialogs only if EOC is coming from parent.

* Updating __is_eoc_coming_from_parent condition

* modify activity.caller_id in bfhttpclient

Co-authored-by: Axel Suárez <axsuarez@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PORT] EoC should only be handled when coming from parent in RunAsync

4 participants