Skip to content

Commit

Permalink
Preparing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Nov 30, 2016
1 parent eb5de38 commit bff9c70
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Strophe.js Change Log

## Version 1.2.10 - Unreleased
## Version 1.2.10 - 2016-11-30
* #172 and #215: Strophe shouldn't require `from` attribute in iq response
* #216 Get inactivity attribute from session creation response
* Enable session restoration for anonymous logins

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strophe.js",
"description": "Strophe.js is an XMPP library for JavaScript",
"version": "1.2.9",
"version": "1.2.10",
"license": "MIT",
"main": "strophe.js",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strophe.js",
"description": "Strophe.js is an XMPP library for JavaScript",
"version": "1.2.9",
"version": "1.2.10",
"homepage": "http://strophe.im/strophejs",
"repository": {
"type": "git",
Expand Down
12 changes: 9 additions & 3 deletions strophe.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ Strophe = {
* The version of the Strophe library. Unreleased builds will have
* a version of head-HASH where HASH is a partial revision.
*/
VERSION: "1.2.9",
VERSION: "1.2.10",

/** Constants: XMPP Namespace Constants
* Common namespace constants from the XMPP RFCs and XEPs.
Expand Down Expand Up @@ -4651,8 +4651,14 @@ Strophe.Bosh.prototype = {
session.rid &&
session.sid &&
session.jid &&
(typeof jid === "undefined" || jid === null || Strophe.getBareJidFromJid(session.jid) == Strophe.getBareJidFromJid(jid)))
{
( typeof jid === "undefined" ||
jid === null ||
Strophe.getBareJidFromJid(session.jid) == Strophe.getBareJidFromJid(jid) ||
// If authcid is null, then it's an anonymous login, so
// we compare only the domains:
((Strophe.getNodeFromJid(jid) === null) && (Strophe.getDomainFromJid(session.jid) == jid))
)
) {
this._conn.restored = true;
this._attach(session.jid, session.sid, session.rid, callback, wait, hold, wind);
} else {
Expand Down
6 changes: 3 additions & 3 deletions strophe.min.js

Large diffs are not rendered by default.

0 comments on commit bff9c70

Please sign in to comment.