Emit event after chat reloading

This commit is contained in:
Cohee 2023-07-21 14:15:43 +03:00
parent 500eae40e2
commit c0d3dd54a7
1 changed files with 2 additions and 0 deletions

View File

@ -1128,6 +1128,8 @@ export async function reloadCurrentChat() {
resetChatState(); resetChatState();
printMessages(); printMessages();
} }
await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
} }
function messageFormatting(mes, ch_name, isSystem, isUser) { function messageFormatting(mes, ch_name, isSystem, isUser) {