-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
context.EndConversation() dosnt work with msteams channel #4774
Comments
EndConversation is not supported in MS Teams, part of its functionality is to delete conversationData, which is not enabled within MS Teams for compliance reasons. The error is left on so that it's clear to the user that it isn't a valid action for that channel. This is covered in more detail in these two github issues. #3379 To fix your current issue filter out any calls coming from MSTeams from your endConversation call via:
That said, we will look into updating our documentation for endConversation so this is more obvious. |
@nyxsys @Wenish |
@xiaolangxyz context.Done<bool>(true); and on the root dialog we check if the bot is with msteams or something else connected: private async Task ResumeAfterChildDialogAsync(IDialogContext context, IAwaitable<object> result)
{
try
{
var message = await result;
}
catch (Exception ex)
{
await context.PostAsync($"{Text.Failed}: {ex.Message}");
}
finally
{
if(context.Activity.ChannelId == ChannelIds.Msteams)
{
context.Wait(MessageReceivedAsync);
} else
{
context.EndConversation("200");
}
}
} |
How can we fix this issue with bot (VA and Skill) which was developed using typescript? We dont see below method support in the typescript library. context.Done(true); |
Bot Info
Issue Description
If you use context.EndConversation("200"); and the user is with msteams to the bot connected the bot throws an error. This does only happens in msteams channel
Code Example
Its the basic bot example with 1 line changed
https://drive.google.com/open?id=1oPVWoZ6CKmfXlpiWCAxZpIti8aAuvdqv
Reproduction Steps
Expected Behavior
Like on the other channels it should not throw an error
Actual Results
The Bot send to the user:
![hey](https://user-images.githubusercontent.com/18367963/41705790-5a8a462c-753a-11e8-8005-038d65fcfe11.png)
Sorry my Bot Code is having an issue
The text was updated successfully, but these errors were encountered: