Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1746 from adantoscano/patch-5
Browse files Browse the repository at this point in the history
Add attachment without 's' to make outgoing
  • Loading branch information
benbrown authored Oct 28, 2019
2 parents ee95999 + b00849d commit 42e6407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/botkit/src/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ export class BotkitConversation<O extends object = {}> extends Dialog<O> {
// This could be extended to include cards and other activity attributes.
} else {
// if there is text, attachments, or any channel data fields at all...
if (line.type || line.text || line.attachments || (line.channelData && Object.keys(line.channelData).length)) {
if (line.type || line.text || line.attachments || line.attachment || (line.channelData && Object.keys(line.channelData).length)) {
await dc.context.sendActivity(await this.makeOutgoing(dc, line, step.values));
} else if (!line.action) {
console.error('Dialog contains invalid message', line);
Expand Down

0 comments on commit 42e6407

Please sign in to comment.