Skip to content
Permalink
Browse files

Merge branch 'pr/135'

  • Loading branch information...
Klervix committed Jul 30, 2019
2 parents 13ce88d + da1f669 commit 52f272d81aafa397e4b1e7f401a75ab3d2b6d8b0
@@ -103,7 +103,6 @@ const input = (RED, node, data, config, reply) => {
if (config.prompt){
botmgr.delayCallback(convId, (prompt) => {
data.prompt = prompt
node.warn({ prompt: data})
sendData(node, data, config)
})
}
@@ -144,6 +143,7 @@ const input = (RED, node, data, config, reply) => {
data.metadata = JSON.parse(config.metadata);
break;
}
data.metadataType = config.metadataType;
}

helper.emitAsyncEvent('before-reply', node, data, config, (beforeData) => {
@@ -128,7 +128,10 @@ const reply = (bot, node, data, config) => {
if (!message) return false;

message.address(address);
if(data.metadata) message.data.value = data.metadata;
if(data.metadata) {
message.data.value = data.metadata;
message.data.valueType = data.metadataType;
}
}

let customTyping = (callback) => {

0 comments on commit 52f272d

Please sign in to comment.
You can’t perform that action at this time.