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.
@@ -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
- if (typeof this.onLogListener === 'function') {
705
- Utils.safeCallbackCall(this.onLogListener, message);
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
 
package/src/qbConfig.js CHANGED
@@ -12,7 +12,7 @@
12
12
  */
13
13
 
14
14
  var config = {
15
- version: '2.17.18-logger',
15
+ version: '2.17.20-logger',
16
16
  buildNumber: '1161',
17
17
  creds: {
18
18
  'appId': 0,