Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Noelle <madamei@mojolingo.com>2015-02-18 01:49:25 +0300
committerMelissa Noelle <madamei@mojolingo.com>2015-02-18 01:49:25 +0300
commit895d068606b179aeca2d8c3d471ac426b8662aba (patch)
tree9e8a73c2d8f8aca43e4de98d75724968bb4ddf21
parenta4155781be3e45607b7d2193340a679336f5bf4c (diff)
Pass the raw XML stanza through the candy:core.message event.
-rw-r--r--src/core/event.js4
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;
},