File tree 1 file changed +4
-2
lines changed 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, {}> {
325
325
let eventName : string
326
326
let dialogId : string
327
327
let userData : object = { }
328
- let mode : string
328
+ let mode : string = ''
329
+ let cancelDialogId : string = ''
329
330
if ( typeof event . detail === 'string' ) {
330
331
dialogId = event . detail
331
332
eventName = 'beginIntroDialog'
332
333
} else if ( typeof event . detail === 'object' && typeof event . detail . id === 'string' ) {
333
334
dialogId = event . detail . id
334
335
userData = event . detail . userData || { }
335
336
mode = event . detail . mode || ''
337
+ cancelDialogId = event . detail . cancelDialogId || ''
336
338
eventName = 'beginDialog' // new event supported from bot v1.7.419
337
339
}
338
340
@@ -342,7 +344,7 @@ export class Chat extends React.Component<ChatProps, {}> {
342
344
name : eventName ,
343
345
type : 'event' ,
344
346
value : '' ,
345
- channelData : { id : dialogId , userData, mode}
347
+ channelData : { id : dialogId , userData, mode, cancelDialogId }
346
348
} ) . subscribe ( function ( id : any ) {
347
349
konsole . log ( '"' + eventName + '" event sent' , dialogId , userData , mode ) ;
348
350
} ) ;
You can’t perform that action at this time.
0 commit comments