Add character deleted event to the list

This commit is contained in:
Cohee
2024-03-17 19:50:44 +02:00
parent 9ff9331416
commit 3b188c37dd
3 changed files with 5 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ class CharacterContextMenu {
}).then(response => {
if (response.ok) {
return deleteCharacter(character.name, character.avatar, false).then(() => {
eventSource.emit('characterDeleted', { id: characterId, character: characters[characterId] });
eventSource.emit(event_types.CHARACTER_DELETED, { id: characterId, character: characters[characterId] });
if (deleteChats) getPastCharacterChats(characterId).then(pastChats => {
for (const chat of pastChats) {
const name = chat.file_name.replace('.jsonl', '');