Skip to content

Commit

Permalink
fix: typo in OnMEBotMessagePreviewSend (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrichardson authored Jul 12, 2021
1 parent e2b2570 commit 782eb6e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 69 deletions.
5 changes: 0 additions & 5 deletions packages/Teams/js/src/adaptiveTeamsBotComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import {
OnTeamsMECardButtonClicked,
OnTeamsMEConfigQuerySettingUrl,
OnTeamsMEConfigSetting,
OnTeamsMEConfigurationSetting,
OnTeamsMEFetchTask,
OnTeamsMEQuery,
OnTeamsMESelectItem,
Expand Down Expand Up @@ -185,10 +184,6 @@ export class AdaptiveTeamsBotComponent extends BotComponent {
{ kind: OnTeamsMEFetchTask.$kind, type: OnTeamsMEFetchTask },
{ kind: OnTeamsMEQuery.$kind, type: OnTeamsMEQuery },
{ kind: OnTeamsMESelectItem.$kind, type: OnTeamsMESelectItem },
{
kind: OnTeamsMEConfigurationSetting.$kind,
type: OnTeamsMEConfigurationSetting,
},
{
kind: OnTeamsMESubmitAction.$kind,
type: OnTeamsMESubmitAction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { OnInvokeActivity } from 'botbuilder-dialogs-adaptive';
* and activity.value.botMessagePreviewAction == 'send'.
*/
export class OnTeamsMEBotMessagePreviewSend extends OnInvokeActivity {
static $kind = 'Teams.OnMEBotMessagePreviewEdit';
static $kind = 'Teams.OnMEBotMessagePreviewSend';

public commandId?: string;

Expand Down
28 changes: 0 additions & 28 deletions packages/Teams/js/src/conditions/onTeamsMEConfigurationSetting.ts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,26 @@
}
]
},
{
"$kind": "Teams.OnMEBotMessagePreviewEdit",
"condition": "turn.activity.text == 'OnMEBotMessagePreviewEdit'",
"actions": [
{
"$kind": "Microsoft.SendActivity",
"activity": "OnMEBotMessagePreviewEdit"
}
]
},
{
"$kind": "Teams.OnMEBotMessagePreviewSend",
"condition": "turn.activity.text == 'OnMEBotMessagePreviewSend'",
"actions": [
{
"$kind": "Microsoft.SendActivity",
"activity": "OnMEBotMessagePreviewSend"
}
]
},
{
"$kind": "Teams.OnMECardButtonClicked",
"condition": "turn.activity.text == 'OnCardButtonClicked'",
Expand Down Expand Up @@ -372,6 +392,36 @@
"$kind": "Microsoft.Test.AssertReply",
"text": "OnFileConsent"
},
{
"$kind": "Microsoft.Test.UserActivity",
"activity": {
"type": "invoke",
"text": "OnMEBotMessagePreviewEdit",
"value": {
"botMessagePreviewAction": "edit"
},
"name": "composeExtension/submitAction"
}
},
{
"$kind": "Microsoft.Test.AssertReply",
"text": "OnMEBotMessagePreviewEdit"
},
{
"$kind": "Microsoft.Test.UserActivity",
"activity": {
"type": "invoke",
"text": "OnMEBotMessagePreviewSend",
"value": {
"botMessagePreviewAction": "send"
},
"name": "composeExtension/submitAction"
}
},
{
"$kind": "Microsoft.Test.AssertReply",
"text": "OnMEBotMessagePreviewSend"
},
{
"$kind": "Microsoft.Test.UserActivity",
"activity": {
Expand Down

0 comments on commit 782eb6e

Please sign in to comment.