mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Group chat creation fixed
This commit is contained in:
@@ -604,8 +604,8 @@ function printCharacters() {
|
|||||||
);
|
);
|
||||||
//console.log('printcharacters() -- printing -- ChID '+i+' ('+item.name+')');
|
//console.log('printcharacters() -- printing -- ChID '+i+' ('+item.name+')');
|
||||||
});
|
});
|
||||||
sortCharactersList('name', 'asc');
|
|
||||||
printGroups();
|
printGroups();
|
||||||
|
sortCharactersList('name', 'asc');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getCharacters() {
|
async function getCharacters() {
|
||||||
|
@@ -109,6 +109,7 @@ async function getGroupChat(id) {
|
|||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
const group = groups.find((x) => x.id === id);
|
||||||
if (Array.isArray(data) && data.length) {
|
if (Array.isArray(data) && data.length) {
|
||||||
data[0].is_group = true;
|
data[0].is_group = true;
|
||||||
for (let key of data) {
|
for (let key of data) {
|
||||||
@@ -144,7 +145,6 @@ async function getGroupChat(id) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const group = groups.find((x) => x.id === id);
|
|
||||||
if (group) {
|
if (group) {
|
||||||
let metadata = group.chat_metadata ?? {};
|
let metadata = group.chat_metadata ?? {};
|
||||||
updateChatMetadata(metadata, true);
|
updateChatMetadata(metadata, true);
|
||||||
|
Reference in New Issue
Block a user