mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix double-emit of CHAT_CHANGED on /go command
This commit is contained in:
@ -1158,10 +1158,9 @@ export async function reloadCurrentChat() {
|
||||
else {
|
||||
resetChatState();
|
||||
await printMessages();
|
||||
}
|
||||
|
||||
await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
||||
}
|
||||
}
|
||||
|
||||
function messageFormatting(mes, ch_name, isSystem, isUser) {
|
||||
if (mes) {
|
||||
|
@ -197,7 +197,7 @@ export async function getGroupChat(groupId) {
|
||||
updateChatMetadata(metadata, true);
|
||||
}
|
||||
|
||||
eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
||||
await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user