Skip to content

Commit

Permalink
Add members to parameters object passed to createConversation (#535)
Browse files Browse the repository at this point in the history
Take `reference.user` and wrap in an Array literal to set
`ConversationParameters.members`.
  • Loading branch information
mecampbellsoup authored and Stevenic committed Oct 12, 2018
1 parent 2158d94 commit 30f6bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/botbuilder/src/botFrameworkAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class BotFrameworkAdapter extends BotAdapter {
if (!reference.serviceUrl) { throw new Error(`BotFrameworkAdapter.createConversation(): missing serviceUrl.`); }

// Create conversation
const parameters: ConversationParameters = { bot: reference.bot } as ConversationParameters;
const parameters: ConversationParameters = { bot: reference.bot, members: [reference.user] } as ConversationParameters;
const client: ConnectorClient = this.createConnectorClient(reference.serviceUrl);

return client.conversations.createConversation(parameters).then((response: ConversationResourceResponse) => {
Expand Down

0 comments on commit 30f6bfd

Please sign in to comment.