Insert messages to chat load with splice
This commit is contained in:
parent
be874f55c4
commit
33ea3344ff
|
@ -5654,7 +5654,7 @@ async function getChat() {
|
|||
contentType: 'application/json',
|
||||
});
|
||||
if (response[0] !== undefined) {
|
||||
chat.push(...response);
|
||||
chat.splice(0, chat.length, ...response);
|
||||
chat_create_date = chat[0]['create_date'];
|
||||
chat_metadata = chat[0]['chat_metadata'] ?? {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue