@@ -142,7 +142,7 @@ class BotiumConnectorDirectline3 {
142142 content : a . content . text ,
143143 image : a . content . images && a . content . images . length > 0 && mapImage ( a . content . images [ 0 ] ) ,
144144 buttons : a . content . buttons && a . content . buttons . map ( mapButton ) ,
145- media : a . content . images && a . content . images . map ( mapImage ) ,
145+ media : a . content . images && a . content . images . length > 1 && a . content . images . slice ( 1 ) . map ( mapImage ) ,
146146 sourceData : a
147147 } )
148148 } else if ( a . contentType === 'application/vnd.microsoft.card.adaptive' ) {
@@ -154,6 +154,7 @@ class BotiumConnectorDirectline3 {
154154 text : textBlocks && textBlocks . map ( t => t . text ) ,
155155 image : imageBlocks && imageBlocks . length > 0 && mapImage ( imageBlocks [ 0 ] ) ,
156156 buttons : ( ( a . content . actions && a . content . actions . map ( mapButton ) ) || [ ] ) . concat ( ( buttonBlocks && buttonBlocks . map ( mapButton ) ) || [ ] ) ,
157+ media : imageBlocks && imageBlocks . length > 1 && imageBlocks . slice ( 1 ) . map ( mapImage ) ,
157158 sourceData : a
158159 } )
159160 const inputs = this . _deepFilter ( a . content . body , ( t ) => t . type , ( t ) => t . type . startsWith ( 'Input.' ) )
@@ -184,7 +185,7 @@ class BotiumConnectorDirectline3 {
184185 content : a . content . text ,
185186 image : a . content . images && a . content . images . length > 0 && mapImage ( a . content . images [ 0 ] ) ,
186187 buttons : a . content . buttons && a . content . buttons . map ( mapButton ) ,
187- media : a . content . images && a . content . images . map ( mapImage ) ,
188+ media : a . content . images && a . content . images . length > 1 && a . content . images . slice ( 1 ) . map ( mapImage ) ,
188189 sourceData : a
189190 } )
190191 } else if ( a . contentType && a . contentUrl ) {
@@ -234,7 +235,8 @@ class BotiumConnectorDirectline3 {
234235 }
235236 }
236237
237- setTimeout ( ( ) => this . queueBotSays ( botMsg ) , 0 )
238+ // give userSays some time
239+ setTimeout ( ( ) => this . queueBotSays ( botMsg ) , 200 )
238240 }
239241 }
240242 )
0 commit comments