Skip to content

Commit

Permalink
Merge pull request #19 from hinojosachapel/dev
Browse files Browse the repository at this point in the history
Initiate onboarding proactively in webchat
  • Loading branch information
hinojosachapel authored Feb 23, 2020
2 parents ab64b15 + 85aa8f4 commit 7a0d7b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions javascript_nodejs/src/dialogs/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ class MainDialog extends ComponentDialog {
for (var idx in context.activity.membersAdded) {
// Greet anyone that was not the target (recipient) of this message
// 'bot' is the recipient for events from the channel,
// context.activity.membersAdded !== context.activity.recipient.Id indicates the
// context.activity.membersAdded === context.activity.recipient.Id indicates the
// bot was added to the conversation.
if (context.activity.membersAdded[idx].id !== context.activity.recipient.id) {
if (context.activity.membersAdded[idx].id === context.activity.recipient.id) {
// Welcome user.
// When activity type is "conversationUpdate" and the member joining the conversation is the bot
// we will send our Welcome Adaptive Card. This will only be sent once, when the Bot joins conversation
Expand Down
4 changes: 2 additions & 2 deletions typescript_nodejs/src/dialogs/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ export class MainDialog extends ComponentDialog {
for (var idx in context.activity.membersAdded) {
// Greet anyone that was not the target (recipient) of this message
// 'bot' is the recipient for events from the channel,
// context.activity.membersAdded !== context.activity.recipient.Id indicates the
// context.activity.membersAdded === context.activity.recipient.Id indicates the
// bot was added to the conversation.
if (context.activity.membersAdded[idx].id !== context.activity.recipient.id) {
if (context.activity.membersAdded[idx].id === context.activity.recipient.id) {
// Welcome user.
// When activity type is "conversationUpdate" and the member joining the conversation is the bot
// we will send our Welcome Adaptive Card. This will only be sent once, when the Bot joins conversation
Expand Down

0 comments on commit 7a0d7b6

Please sign in to comment.