Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed missing "from" variable #62

Merged
merged 1 commit into from

2 participants

Michael Weibel flosse
Michael Weibel

No description provided.

flosse flosse merged commit da7f3e3 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 9, 2012
  1. Michael Weibel

    Fixed missing "from" variable

    mweibel authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 caps/strophe.caps.js
5 caps/strophe.caps.js
View
@@ -187,7 +187,8 @@
_handleDiscoInfoReply: function(stanza) {
var query = stanza.querySelector('query'),
node = query.getAttribute('node').split('#'),
- ver = node[1];
+ ver = node[1],
+ from = stanza.getAttribute('from');
if (!this._knownCapabilities[ver]) {
var childNodes = query.childNodes,
childNodesLen = childNodes.length;
@@ -196,7 +197,7 @@
var node = childNodes[i];
this._knownCapabilities[ver].push({name: node.nodeName, attributes: node.attributes});
}
- this._jidVerIndex[stanza.getAttribute('from')] = ver;
+ this._jidVerIndex[from] = ver;
} else if (!this._jidVerIndex[from] || !this._jidVerIndex[from] !== ver) {
this._jidVerIndex[from] = ver;
}
Something went wrong with that request. Please try again.