mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Insert messages to chat load with splice
This commit is contained in:
		@@ -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'] ?? {};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user