@hivegpt/hiveai-angular 0.0.260 → 0.0.261
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/bundles/hivegpt-hiveai-angular.umd.js +7 -2
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +8 -3
- package/fesm2015/hivegpt-hiveai-angular.js +7 -2
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -828,12 +828,17 @@
|
|
|
828
828
|
this.eventSubscription = this.conversationService
|
|
829
829
|
.getUserSpecificNotification()
|
|
830
830
|
.subscribe(function (res) {
|
|
831
|
-
var _a, _b;
|
|
831
|
+
var _a, _b, _c;
|
|
832
832
|
// Check if OtherFields exists in the response
|
|
833
833
|
if ((_a = res === null || res === void 0 ? void 0 : res.m) === null || _a === void 0 ? void 0 : _a.OtherFields) {
|
|
834
834
|
var _e = (_b = res === null || res === void 0 ? void 0 : res.m) === null || _b === void 0 ? void 0 : _b.OtherFields, conversation_id = _e.conversation_id, bot_id = _e.bot_id, message_id_1 = _e.message_id, answer = _e.answer, web_results = _e.web_results, graphs = _e.graphs, execution_graphs = _e.execution_graphs, online_search_terms = _e.online_search_terms, suggestions = _e.suggestions;
|
|
835
|
+
console.log("message_id1");
|
|
836
|
+
console.log((_c = res === null || res === void 0 ? void 0 : res.m) === null || _c === void 0 ? void 0 : _c.OtherFields);
|
|
835
837
|
var currentChatMessage = _this.chatLog.find(function (p) { return p._id == message_id_1; });
|
|
838
|
+
console.log(_this.chatLog);
|
|
836
839
|
if (!currentChatMessage) {
|
|
840
|
+
console.log("message_id2");
|
|
841
|
+
console.log(message_id_1);
|
|
837
842
|
currentChatMessage = {
|
|
838
843
|
_id: message_id_1,
|
|
839
844
|
type: 'ai',
|
|
@@ -841,7 +846,7 @@
|
|
|
841
846
|
};
|
|
842
847
|
_this.chatLog.push(currentChatMessage);
|
|
843
848
|
_this.showFeedBackIconsIndex = _this.chatLog.length - 1;
|
|
844
|
-
console.log("
|
|
849
|
+
console.log("message_id3");
|
|
845
850
|
console.log(message_id_1);
|
|
846
851
|
_this.cdr.detectChanges();
|
|
847
852
|
}
|