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:
authorMichael Weibel <mweibel@users.noreply.github.com>2015-05-18 19:36:35 +0300
committerMichael Weibel <mweibel@users.noreply.github.com>2015-05-18 19:36:35 +0300
commit450dd6f7c7bc6987d47f02f1858a75471315cfae (patch)
tree8f8d798968a0d7e736f659d76b67a8c8a65c9609
parent7a1b06537ea4970f5abe36cbea9f143047c3ddc7 (diff)
parent410979b7953677f341b43fd2b15077271c757d23 (diff)
Merge pull request #392 from vitalyster/version
fix jabber:iq:version reply
-rw-r--r--src/core/action.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/action.js b/src/core/action.js
index 77febab..b72a946 100644
--- a/src/core/action.js
+++ b/src/core/action.js
@@ -39,10 +39,11 @@ Candy.Core.Action = (function(self, Strophe, $) {
from: Candy.Util.escapeJid(msg.attr('to')),
id: msg.attr('id')
}).c('query', {
- name: Candy.about.name,
- version: Candy.about.version,
- os: navigator.userAgent
- }));
+ xmlns: Strophe.NS.VERSION
+ })
+ .c('name', Candy.about.name).up()
+ .c('version', Candy.about.version).up()
+ .c('os', navigator.userAgent));
},
/** Function: SetNickname