This commit is contained in:
Melanie Mendoza 2018-08-23 19:11:34 -07:00
Родитель 57f32d560c
Коммит d9a5e46f41
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -56,6 +56,7 @@ class BotFrameworkAdapter extends Adapter
# If the command for the invoke doesn't need user input, handle the command
# normally. If it does need user input, return a prompt for user input.
menuCardInvoke: (invokeEvent, cb) ->
console.log(invokeEvent)
middleware = @using(invokeEvent.source)
payload = middleware.maybeConstructUserInputPrompt(invokeEvent)
if payload == null
@ -63,7 +64,7 @@ class BotFrameworkAdapter extends Adapter
delete invokeEvent.value
@handleActivity(invokeEvent)
else
@sendPayload(@robot, payload)
middleware.sendPayload(@robot, @connector, payload)
return
using: (name) ->