forked from open-webui/open-webui
		
	fix: user chat delete loophole
This commit is contained in:
		
							parent
							
								
									a4c6a8d5a4
								
							
						
					
					
						commit
						74809e7330
					
				
					 3 changed files with 15 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -75,7 +75,9 @@
 | 
			
		|||
 | 
			
		||||
	const deleteChats = async () => {
 | 
			
		||||
		await goto('/');
 | 
			
		||||
		await deleteAllChats(localStorage.token);
 | 
			
		||||
		await deleteAllChats(localStorage.token).catch((error) => {
 | 
			
		||||
			toast.error(error);
 | 
			
		||||
		});
 | 
			
		||||
		await chats.set(await getChatList(localStorage.token));
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue