Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
6 changes: 0 additions & 6 deletions runtime/dotnet/core/ComposerBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ public ComposerBot(ConversationState conversationState, UserState userState, Res

public override async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken = default(CancellationToken))
{
AdaptiveDialog rootDialog = (AdaptiveDialog)this.dialogManager.RootDialog;
if (turnContext.TurnState.Get<IIdentity>(BotAdapter.BotIdentityKey) is ClaimsIdentity claimIdentity && SkillValidation.IsSkillClaim(claimIdentity.Claims))
{
rootDialog.AutoEndDialog = true;
}

if (this.removeRecipientMention && turnContext?.Activity?.Type == "message")
{
turnContext.Activity.RemoveRecipientMention();
Expand Down