Skip to content

Add 'ephemeral' as the list of options for Delivery Mode #3502

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

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

Jeffders
Copy link
Member

@Jeffders Jeffders commented Mar 5, 2020

We are adding a new option for DeliveryMode on the Activity. This property is a string, and the code comment lists all of the possible values. I have updated the code comment to list the new value of 'ephemeral'.

@Jeffders Jeffders requested review from tomlm and carlosscastro March 5, 2020 17:55
@@ -349,7 +349,10 @@ private async Task SendOAuthCardAsync(ITurnContext turnContext, IMessageActivity

if (turnContext.TurnState.Get<ClaimsIdentity>("BotIdentity") is ClaimsIdentity botIdentity && SkillValidation.IsSkillClaim(botIdentity.Claims))
{
cardActionType = ActionTypes.OpenUrl;
if (turnContext.Activity.ChannelId == "emulator")
Copy link
Member

Choose a reason for hiding this comment

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

constant, we already have one

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (turnContext.Activity.ChannelId == "emulator")
if (turnContext.Activity.ChannelId == Channels.Emulator)

@carlosscastro
Copy link
Member

Approved but Jeff will fix the constant and do some merges

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.

2 participants