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