diff options
author | Melissa Noelle <madamei@mojolingo.com> | 2015-02-18 01:49:25 +0300 |
---|---|---|
committer | Melissa Noelle <madamei@mojolingo.com> | 2015-02-18 01:49:25 +0300 |
commit | 895d068606b179aeca2d8c3d471ac426b8662aba (patch) | |
tree | 9e8a73c2d8f8aca43e4de98d75724968bb4ddf21 | |
parent | a4155781be3e45607b7d2193340a679336f5bf4c (diff) |
Pass the raw XML stanza through the candy:core.message event.
-rw-r--r-- | src/core/event.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/event.js b/src/core/event.js index 6a973c9..1470fb9 100644 --- a/src/core/event.js +++ b/src/core/event.js @@ -916,6 +916,7 @@ Candy.Core.Event = (function(self, Strophe, $) { * - MUC msg from server: {name = '', body, type = 'info'} * (String) timestamp - Timestamp, only when it's an offline message * (Boolean) carbon - Indication of wether or not the message was a carbon + * (String) stanza - The raw XML stanza * * TODO: * Streamline those events sent and rename the parameters. @@ -925,7 +926,8 @@ Candy.Core.Event = (function(self, Strophe, $) { roomName: roomName, message: message, timestamp: timestamp, - carbon: carbon + carbon: carbon, + stanza: msg }); return true; }, |