mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Insert group chat history with splice
This commit is contained in:
parent
842b463e60
commit
e832af9854
@ -188,9 +188,7 @@ export async function getGroupChat(groupId, reload = false) {
|
||||
|
||||
if (Array.isArray(data) && data.length) {
|
||||
data[0].is_group = true;
|
||||
for (let key of data) {
|
||||
chat.push(key);
|
||||
}
|
||||
chat.splice(0, chat.length, ...data);
|
||||
await printMessages();
|
||||
} else {
|
||||
sendSystemMessage(system_message_types.GROUP, '', { isSmallSys: true });
|
||||
|
Loading…
Reference in New Issue
Block a user