Skip to content

Commit bff9c70

Browse files
committed
Preparing for release
1 parent eb5de38 commit bff9c70

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Strophe.js Change Log
22

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

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "strophe.js",
33
"description": "Strophe.js is an XMPP library for JavaScript",
4-
"version": "1.2.9",
4+
"version": "1.2.10",
55
"license": "MIT",
66
"main": "strophe.js",
77
"authors": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "strophe.js",
33
"description": "Strophe.js is an XMPP library for JavaScript",
4-
"version": "1.2.9",
4+
"version": "1.2.10",
55
"homepage": "http://strophe.im/strophejs",
66
"repository": {
77
"type": "git",

strophe.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ Strophe = {
846846
* The version of the Strophe library. Unreleased builds will have
847847
* a version of head-HASH where HASH is a partial revision.
848848
*/
849-
VERSION: "1.2.9",
849+
VERSION: "1.2.10",
850850

851851
/** Constants: XMPP Namespace Constants
852852
* Common namespace constants from the XMPP RFCs and XEPs.
@@ -4651,8 +4651,14 @@ Strophe.Bosh.prototype = {
46514651
session.rid &&
46524652
session.sid &&
46534653
session.jid &&
4654-
(typeof jid === "undefined" || jid === null || Strophe.getBareJidFromJid(session.jid) == Strophe.getBareJidFromJid(jid)))
4655-
{
4654+
( typeof jid === "undefined" ||
4655+
jid === null ||
4656+
Strophe.getBareJidFromJid(session.jid) == Strophe.getBareJidFromJid(jid) ||
4657+
// If authcid is null, then it's an anonymous login, so
4658+
// we compare only the domains:
4659+
((Strophe.getNodeFromJid(jid) === null) && (Strophe.getDomainFromJid(session.jid) == jid))
4660+
)
4661+
) {
46564662
this._conn.restored = true;
46574663
this._attach(session.jid, session.sid, session.rid, callback, wait, hold, wind);
46584664
} else {

strophe.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)