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) {
|
if (Array.isArray(data) && data.length) {
|
||||||
data[0].is_group = true;
|
data[0].is_group = true;
|
||||||
for (let key of data) {
|
chat.splice(0, chat.length, ...data);
|
||||||
chat.push(key);
|
|
||||||
}
|
|
||||||
await printMessages();
|
await printMessages();
|
||||||
} else {
|
} else {
|
||||||
sendSystemMessage(system_message_types.GROUP, '', { isSmallSys: true });
|
sendSystemMessage(system_message_types.GROUP, '', { isSmallSys: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user