better type name, simplified context

This commit is contained in:
bmen25124
2025-03-13 02:27:03 +03:00
parent ddb77732f2
commit 92dacdb386
3 changed files with 5 additions and 7 deletions

View File

@@ -246,9 +246,9 @@ export async function getGroupChat(groupId, reload = false) {
}
chat.push(mes);
await eventSource.emit(event_types.MESSAGE_RECEIVED, (chat.length - 1), 'group_first_message');
await eventSource.emit(event_types.MESSAGE_RECEIVED, (chat.length - 1), 'first_message');
addOneMessage(mes);
await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, (chat.length - 1), 'group_first_message');
await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, (chat.length - 1), 'first_message');
}
}
await saveGroupChat(groupId, false);