Skip to content

Commit 3c3639c

Browse files
committed
chat.connected > chat.isConnected
1 parent 50cd163 commit 3c3639c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/modules/chat/qbChat.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function ChatProxy(service) {
8282
this.service = service;
8383

8484
// Check the chat connection (return true/false)
85-
this.connected = false;
85+
this.isConnected = false;
8686

8787
this._isLogout = false;
8888
this._isDisconnected = false;
@@ -789,7 +789,7 @@ ChatProxy.prototype = {
789789

790790
/** connect for node */
791791
if(!Utils.getEnv().browser) {
792-
if (self.connected) {
792+
if (self.isConnected) {
793793
callback(null, self.roster.contacts);
794794
return;
795795
}
@@ -805,7 +805,7 @@ ChatProxy.prototype = {
805805
Utils.safeCallbackCall(self.onReconnectListener);
806806
}
807807

808-
self.connected = false;
808+
self.isConnected = false;
809809
});
810810

811811
self.Client.on('online', function() {
@@ -818,7 +818,7 @@ ChatProxy.prototype = {
818818

819819
self.helpers.setUserCurrentJid(self.helpers.userCurrentJid(self.Client));
820820

821-
self.connected = true;
821+
self.isConnected = true;
822822

823823
if (typeof callback === 'function') {
824824
var presence = chatUtils.createStanza(XMPP.Stanza, null, 'presence');
@@ -864,7 +864,7 @@ ChatProxy.prototype = {
864864
Utils.safeCallbackCall(self.onDisconnectedListener);
865865
}
866866

867-
self.connected = false;
867+
self.isConnected = false;
868868
self.Client._events = {};
869869
self.Client._eventsCount = 0;
870870
});
@@ -877,7 +877,7 @@ ChatProxy.prototype = {
877877
callback(err, null);
878878
}
879879

880-
self.connected = false;
880+
self.isConnected = false;
881881
});
882882

883883
self.Client.options.jid = userJid;

0 commit comments

Comments
 (0)