mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Fix message updated event
This commit is contained in:
		@@ -677,8 +677,8 @@ ComunicWeb.pages.conversations.conversation = ConversationPageConvPart;
 | 
			
		||||
document.addEventListener("newConvMessage", (e) => {
 | 
			
		||||
	const msg = e.detail;
 | 
			
		||||
	
 | 
			
		||||
	if (ComunicWeb.pages.conversations.conversation._conv_info.id == msg.conv_id)
 | 
			
		||||
		ComunicWeb.pages.conversations.conversation.applyMessages([msg]);
 | 
			
		||||
	if (ConversationPageConvPart._conv_info.id == msg.conv_id)
 | 
			
		||||
		ConversationPageConvPart.applyMessages([msg]);
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
// Register to message update events
 | 
			
		||||
@@ -700,7 +700,7 @@ document.addEventListener("updatedConvMessage", async (e) => {
 | 
			
		||||
	//Parse message content
 | 
			
		||||
	ComunicWeb.components.textParser.parse({
 | 
			
		||||
		element: newMessageContent,
 | 
			
		||||
		user: await userInfo(msg.ID_user)
 | 
			
		||||
		user: await userInfo(msg.user_id)
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	target.replaceWith(newMessageContent)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user