@hivegpt/hiveai-angular 0.0.273 → 0.0.275

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.
@@ -826,8 +826,7 @@
826
826
  try {
827
827
  this.socketService.disconnectSocketConnection();
828
828
  }
829
- catch (error) {
830
- }
829
+ catch (error) { }
831
830
  setTimeout(function () {
832
831
  _this.socketService.connectSocketConnection();
833
832
  setTimeout(function () {
@@ -836,15 +835,15 @@
836
835
  _this.socketService.registerUserSpecificHiveSocket(_this.botId, conversation_id);
837
836
  setTimeout(function () {
838
837
  _this.listenSockets();
839
- }, 200);
838
+ }, 300);
840
839
  }, 200);
841
840
  }, 300);
842
841
  };
843
842
  ChatDrawerComponent.prototype.listenSockets = function () {
844
843
  var _this = this;
845
- // if (this.eventSubscription) {
846
- // this.eventSubscription.unsubscribe();
847
- // }
844
+ if (this.eventSubscription) {
845
+ this.eventSubscription.unsubscribe();
846
+ }
848
847
  console.log('Listen Socket');
849
848
  this.eventSubscription = this.conversationService
850
849
  .getUserSpecificNotification()
@@ -1837,7 +1836,12 @@
1837
1836
  _this.cdr.markForCheck();
1838
1837
  return rxjs.of(res);
1839
1838
  }), operators.catchError(function (error) {
1840
- console.error('Error fetching chatbot config: ', error);
1839
+ console.error('Error fetching chatbot config DJ: ', error);
1840
+ if (error.HttpErrorResponse.status == 404) {
1841
+ console.log('dash');
1842
+ _this.isDocInEditMode = false;
1843
+ _this.isContentLoaded = true;
1844
+ }
1841
1845
  return rxjs.of(null);
1842
1846
  }));
1843
1847
  };