瀏覽代碼

fix(XmppConnection): the ATTACHED state equals to CONNECTED with jiconop

When Jiconop is used to attach to a warmed up BOSH session Strophe goes
to ATTACHED instead of the CONNECTED state.
master
paweldomas 5 年之前
父節點
當前提交
567ba72675
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/xmpp/XmppConnection.js

+ 1
- 1
modules/xmpp/XmppConnection.js 查看文件

@@ -76,7 +76,7 @@ export default class XmppConnection extends Listenable {
76 76
      * @returns {boolean}
77 77
      */
78 78
     get connected() {
79
-        return this._status === Strophe.Status.CONNECTED;
79
+        return this._status === Strophe.Status.CONNECTED || this._status === Strophe.Status.ATTACHED;
80 80
     }
81 81
 
82 82
     /**

Loading…
取消
儲存