Renamed to CHARACTER_RENAMED_IN_PAST_CHAT

eab4e8aebc0c870f05eedc8566ed15c65c1e6d9e

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -2Ignore whitespace
public/script.js+2 -2
@@ -500,7 +500,7 @@ export const event_types = {
500 CHARACTER_DELETED: 'characterDeleted',500 CHARACTER_DELETED: 'characterDeleted',
501 CHARACTER_DUPLICATED: 'character_duplicated',501 CHARACTER_DUPLICATED: 'character_duplicated',
502 CHARACTER_RENAMED: 'character_renamed',502 CHARACTER_RENAMED: 'character_renamed',
503 RENAMED_PAST_CHAT: 'renamed_past_chat',503 CHARACTER_RENAMED_IN_PAST_CHAT: 'character_renamed_in_past_chat',
504 /** @deprecated The event is aliased to STREAM_TOKEN_RECEIVED. */504 /** @deprecated The event is aliased to STREAM_TOKEN_RECEIVED. */
505 SMOOTH_STREAM_TOKEN_RECEIVED: 'stream_token_received',505 SMOOTH_STREAM_TOKEN_RECEIVED: 'stream_token_received',
506 STREAM_TOKEN_RECEIVED: 'stream_token_received',506 STREAM_TOKEN_RECEIVED: 'stream_token_received',
@@ -6440,7 +6440,7 @@ async function renamePastChats(oldAvatar, newAvatar, newName) {
6440 }6440 }
6441 }6441 }
64426442
6443 await eventSource.emit(event_types.RENAMED_PAST_CHAT, currentChat, oldAvatar, newAvatar);6443 await eventSource.emit(event_types.CHARACTER_RENAMED_IN_PAST_CHAT, currentChat, oldAvatar, newAvatar);
64446444
6445 const saveChatResponse = await fetch('/api/chats/save', {6445 const saveChatResponse = await fetch('/api/chats/save', {
6446 method: 'POST',6446 method: 'POST',