@hivegpt/hiveai-angular 0.0.218 → 0.0.220

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.
@@ -775,12 +775,14 @@
775
775
  if (changes.s27Token.currentValue != changes.s27Token.previousValue) {
776
776
  console.log('s27Token changed previous:', changes.s27Token.previousValue, ' current:', changes.s27Token.currentValue);
777
777
  this.s27Token = changes.s27Token.currentValue;
778
+ console.log('msg: ', this.msg);
779
+ console.log('chat: ', this.chat);
778
780
  if (this.is401) {
779
781
  if (this.isFetchDataFor) {
780
782
  this.fetchDataFor(this.msg, this.chat);
781
783
  }
782
784
  else {
783
- this.fetchData();
785
+ this.fetchData(this.msg);
784
786
  }
785
787
  }
786
788
  }
@@ -1109,10 +1111,11 @@
1109
1111
  this.fetchData();
1110
1112
  this.scrollToBottom();
1111
1113
  };
1112
- ChatDrawerComponent.prototype.fetchData = function () {
1114
+ ChatDrawerComponent.prototype.fetchData = function (msg) {
1113
1115
  var _this = this;
1116
+ if (msg === void 0) { msg = null; }
1114
1117
  var _a;
1115
- this.input = (_a = this.input) === null || _a === void 0 ? void 0 : _a.trim();
1118
+ this.input = msg || ((_a = this.input) === null || _a === void 0 ? void 0 : _a.trim());
1116
1119
  if (!this.input || this.loading) {
1117
1120
  return;
1118
1121
  }
@@ -1154,6 +1157,7 @@
1154
1157
  .then(function (response) {
1155
1158
  if (response.status === 401 || response.status === 403) {
1156
1159
  _this.is401 = true;
1160
+ _this.msg = _this.input;
1157
1161
  _this.refreshToken.emit();
1158
1162
  }
1159
1163
  return response.json(); // Continue processing the response