Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Skills: Cancel dialogs only if EOC is coming from parent. - #860

Merged
Axel Suárez (axelsrz) merged 3 commits into
masterfrom
trboehre/eoc-handling
Mar 12, 2020
Merged

Axel Suárez (axelsrz) merged 3 commits into
masterfrom
trboehre/eoc-handling

Conversation

@tracyboehrer

Copy link
Copy Markdown
Member

Fixes #859

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
Copy Markdown
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)

@gabog Gabo Gilabert (gabog) left a comment

Copy link
Copy Markdown
Contributor

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
Axel Suárez (axelsrz) merged commit 7e2fbad into master Mar 12, 2020
@axelsrz
Axel Suárez (axelsrz) deleted the trboehre/eoc-handling branch March 12, 2020 16:43
Axel Suárez (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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants