mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Redirect user when he is removed from conversation
This commit is contained in:
		@@ -685,4 +685,12 @@ document.addEventListener("deletedConvMessage", (e) => {
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	target.parentNode.remove()
 | 
			
		||||
})
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
// Register to conversation removal
 | 
			
		||||
document.addEventListener("removedUserFromConv", e => {
 | 
			
		||||
	const msg = e.detail;
 | 
			
		||||
 | 
			
		||||
	if (msg.user_id == userID() && ConversationPageConvPart._conv_info.id)
 | 
			
		||||
		Page.openPage("conversations");
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user