mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Handle conversation deleted event
This commit is contained in:
		@@ -1505,4 +1505,13 @@ document.addEventListener("removedUserFromConv", e => {
 | 
			
		||||
		return;
 | 
			
		||||
	
 | 
			
		||||
	ConvChatWindow.__conversationsCache["conversation-"+msg.conv_id].box.closeFunction();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
document.addEventListener("deletedConversation", e => {
 | 
			
		||||
	const convID = e.detail;
 | 
			
		||||
 | 
			
		||||
	if(!ConvService.__serviceCache.hasOwnProperty("conversation-" + convID))
 | 
			
		||||
		return;
 | 
			
		||||
	
 | 
			
		||||
	ConvChatWindow.__conversationsCache["conversation-"+convID].box.closeFunction();
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user