File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -325,14 +325,16 @@ export class Chat extends React.Component<ChatProps, {}> {
325325 let eventName : string
326326 let dialogId : string
327327 let userData : object = { }
328- let mode : string
328+ let mode : string = ''
329+ let cancelDialogId : string = ''
329330 if ( typeof event . detail === 'string' ) {
330331 dialogId = event . detail
331332 eventName = 'beginIntroDialog'
332333 } else if ( typeof event . detail === 'object' && typeof event . detail . id === 'string' ) {
333334 dialogId = event . detail . id
334335 userData = event . detail . userData || { }
335336 mode = event . detail . mode || ''
337+ cancelDialogId = event . detail . cancelDialogId || ''
336338 eventName = 'beginDialog' // new event supported from bot v1.7.419
337339 }
338340
@@ -342,7 +344,7 @@ export class Chat extends React.Component<ChatProps, {}> {
342344 name : eventName ,
343345 type : 'event' ,
344346 value : '' ,
345- channelData : { id : dialogId , userData, mode}
347+ channelData : { id : dialogId , userData, mode, cancelDialogId }
346348 } ) . subscribe ( function ( id : any ) {
347349 konsole . log ( '"' + eventName + '" event sent' , dialogId , userData , mode ) ;
348350 } ) ;
You can’t perform that action at this time.
0 commit comments