quickblox 2.21.3 → 2.21.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/quickblox.js +6 -2
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +4 -0
- package/src/qbConfig.js +2 -2
|
@@ -882,6 +882,9 @@ ChatProxy.prototype = {
|
|
|
882
882
|
' error: ', error);
|
|
883
883
|
self._chatPingFailedCounter += 1;
|
|
884
884
|
if (self._chatPingFailedCounter > 6) {
|
|
885
|
+
if (self.isConnected && typeof self.onDisconnectedListener === 'function') {
|
|
886
|
+
Utils.safeCallbackCall(self.onDisconnectedListener);
|
|
887
|
+
}
|
|
885
888
|
self.isConnected = false;
|
|
886
889
|
self._isConnecting = false;
|
|
887
890
|
self._chatPingFailedCounter = 0;
|
|
@@ -1236,6 +1239,7 @@ ChatProxy.prototype = {
|
|
|
1236
1239
|
}
|
|
1237
1240
|
},
|
|
1238
1241
|
|
|
1242
|
+
|
|
1239
1243
|
/**
|
|
1240
1244
|
* Send message to 1 to 1 or group dialog. {@link https://quickblox.com/developers/Web_XMPP_Chat_Sample#Chat_in_dialog More info.}
|
|
1241
1245
|
* @memberof QB.chat
|