quickblox 2.17.18-logger → 2.17.20-logger
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 +7 -4
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +6 -3
- package/src/qbConfig.js +1 -1
|
@@ -39,7 +39,7 @@ function ChatProxy(service) {
|
|
|
39
39
|
*/
|
|
40
40
|
if (Utils.getEnv().browser) {
|
|
41
41
|
// strophe js
|
|
42
|
-
self.connection = Connection(self._OnLogListener);
|
|
42
|
+
self.connection = Connection(self._OnLogListener.bind(this));
|
|
43
43
|
|
|
44
44
|
/** Add extension methods to track handlers for removal on reconnect */
|
|
45
45
|
self.connection.XHandlerReferences = [];
|
|
@@ -701,8 +701,11 @@ function ChatProxy(service) {
|
|
|
701
701
|
ChatProxy.prototype = {
|
|
702
702
|
|
|
703
703
|
_OnLogListener: function (message) {
|
|
704
|
-
|
|
705
|
-
|
|
704
|
+
var self = this;
|
|
705
|
+
Utils.QBLog('[QBChat][TEST]', self);
|
|
706
|
+
Utils.QBLog('[QBChat][TEST]', typeof self.onLogListener);
|
|
707
|
+
if (typeof self.onLogListener === 'function') {
|
|
708
|
+
Utils.safeCallbackCall(self.onLogListener, message);
|
|
706
709
|
}
|
|
707
710
|
},
|
|
708
711
|
|