merge_message
This commit is contained in:
commit
3acc8b7035
@ -21,11 +21,6 @@ interface LocalNotification {
|
||||
time: string;
|
||||
}
|
||||
|
||||
interface ChatMessage {
|
||||
text: string;
|
||||
timestamp: number;
|
||||
}
|
||||
|
||||
export function initChat() {
|
||||
const chatElement = document.createElement('chat-element');
|
||||
const container = document.querySelector('.container');
|
||||
@ -610,7 +605,6 @@ class ChatElement extends HTMLElement {
|
||||
}
|
||||
}
|
||||
|
||||
// Ajouter cette méthode utilitaire pour convertir base64 en Blob
|
||||
private base64ToBlob(base64: string, type: string): Blob {
|
||||
const byteCharacters = atob(base64.split(',')[1]);
|
||||
const byteArrays = [];
|
||||
@ -668,6 +662,7 @@ class ChatElement extends HTMLElement {
|
||||
console.log('🎭 Selected role:', this.selectedRole);
|
||||
|
||||
try {
|
||||
console.log('🔍 Début création process message');
|
||||
const parentProcessId = this.getAttribute('process-id');
|
||||
if (!parentProcessId) {
|
||||
throw new Error('No parent process ID found');
|
||||
|
Loading…
x
Reference in New Issue
Block a user