mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Fire event when selecting a group chat
This commit is contained in:
parent
7411ca1154
commit
4476cbdc81
@ -1166,6 +1166,8 @@ function select_group_chats(groupId, skipAnimation) {
|
|||||||
sortGroupMembers("#rm_group_add_members .group_member");
|
sortGroupMembers("#rm_group_add_members .group_member");
|
||||||
await eventSource.emit(event_types.GROUP_UPDATED);
|
await eventSource.emit(event_types.GROUP_UPDATED);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.dispatchEvent(new CustomEvent('groupSelected', { detail: {id: groupId, group: group}}));
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateFavButtonState(state) {
|
function updateFavButtonState(state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user