Spaces:
Building
Building
Update flare-ui/src/app/components/chat/realtime-chat.component.ts
Browse files
flare-ui/src/app/components/chat/realtime-chat.component.ts
CHANGED
@@ -410,11 +410,14 @@ export class RealtimeChatComponent implements OnInit, OnDestroy, AfterViewChecke
|
|
410 |
}
|
411 |
}
|
412 |
|
413 |
-
|
414 |
try {
|
415 |
this.loading = true;
|
416 |
this.error = '';
|
417 |
|
|
|
|
|
|
|
418 |
await this.conversationManager.startConversation(this.sessionId!);
|
419 |
this.isConversationActive = true;
|
420 |
this.startVisualization();
|
|
|
410 |
}
|
411 |
}
|
412 |
|
413 |
+
async startConversation(): Promise<void> {
|
414 |
try {
|
415 |
this.loading = true;
|
416 |
this.error = '';
|
417 |
|
418 |
+
// Clear existing messages - welcome will come via WebSocket
|
419 |
+
this.conversationManager.clearMessages();
|
420 |
+
|
421 |
await this.conversationManager.startConversation(this.sessionId!);
|
422 |
this.isConversationActive = true;
|
423 |
this.startVisualization();
|