Emit group chat changed event

This commit is contained in:
SillyLossy
2023-06-01 00:50:04 +03:00
parent 8b4a53b293
commit e6f54363cc
2 changed files with 6 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ import {
saveChatConditional,
deactivateSendButtons,
activateSendButtons,
eventSource,
event_types,
getCurrentChatId,
} from "../script.js";
import { appendTagToList, createTagMapFromList, getTagsList, applyTagsOnCharacterSelect } from './tags.js';
@@ -172,6 +175,7 @@ export async function getGroupChat(groupId) {
}
await saveGroupChat(groupId, true);
eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
}
function getFirstCharacterMessage(character) {