From 8aba292aefa198539cfdc5c8a1999b70b430cbb3 Mon Sep 17 00:00:00 2001 From: ben hockey Date: Thu, 15 Jan 2015 17:23:32 -0600 Subject: [PATCH] use pathInfo as the message.from and message.id --- media/message/json.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media/message/json.js b/media/message/json.js index 2c7c61f..ca13998 100644 --- a/media/message/json.js +++ b/media/message/json.js @@ -49,7 +49,8 @@ module.exports = Media({ if(response.body && typeof response.body.observe === "function"){ clientConnection.expectMore = true; response.body.observe(function(message){ - message.from = message.channel; + message.from = pathInfo; + message.id = request.id; clientConnection.send(message); }); }