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

Handle attachmentLayout (carousel/list) inside conversation #1865

Merged
merged 2 commits into from
Jan 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/botkit/src/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,9 @@ export class BotkitConversation<O extends object = {}> extends Dialog<O> {
}

outgoing.channelData = outgoing.channelData ? outgoing.channelData : {};

if (line.attachmentLayout) {
outgoing.attachmentLayout = line.attachmentLayout;
}
/*******************************************************************************************************************/
// allow dynamic generation of quick replies and/or attachments
if (typeof(line.quick_replies)=='function') {
Expand Down