mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-03 19:37:46 +01:00
Fix double-emit of CHAT_CHANGED on /go command
This commit is contained in:
parent
fadd92a6c3
commit
91862bff43
@ -1158,9 +1158,8 @@ export async function reloadCurrentChat() {
|
|||||||
else {
|
else {
|
||||||
resetChatState();
|
resetChatState();
|
||||||
await printMessages();
|
await printMessages();
|
||||||
}
|
|
||||||
|
|
||||||
await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function messageFormatting(mes, ch_name, isSystem, isUser) {
|
function messageFormatting(mes, ch_name, isSystem, isUser) {
|
||||||
|
@ -197,7 +197,7 @@ export async function getGroupChat(groupId) {
|
|||||||
updateChatMetadata(metadata, true);
|
updateChatMetadata(metadata, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user