浏览代码

Pass the jid to `restore`

if it's defined, then we want the extra check that the jids match, otherwise
we might be attaching to someone else's session.
JC Brand 9 年之前
父节点
当前提交
f9528e7144
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/converse-core.js

+ 1 - 1
src/converse-core.js

@@ -1683,7 +1683,7 @@
              */
             if (this.keepalive) {
                 try {
-                    return this.connection.restore(undefined, this.onConnectStatusChanged);
+                    return this.connection.restore(this.jid, this.onConnectStatusChanged);
                 } catch (e) {
                     this.log("Could not restore session. Error message: "+e.message);
                     this.clearSession(); // If there's a roster, we want to clear it (see #555)