mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 11:44:19 +00:00 
			
		
		
		
	Export conversations logo
This commit is contained in:
		@@ -197,12 +197,22 @@ ComunicWeb.components.account.export.worker = {
 | 
			
		||||
			post.comments.forEach(parseComment);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/**
 | 
			
		||||
		 * Parse a conversation to find potential files to download
 | 
			
		||||
		 * 
 | 
			
		||||
		 * @param {Conversation} info Information about the conversation message to parse
 | 
			
		||||
		 */
 | 
			
		||||
		const parseConversation = function(info){
 | 
			
		||||
			if(info.logo != null)
 | 
			
		||||
				files.add(info.logo);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/**
 | 
			
		||||
		 * Parse a conversation message to find potential files to download
 | 
			
		||||
		 * 
 | 
			
		||||
		 * @param {ConversationMessage} info Information about the conversation message to parse
 | 
			
		||||
		 */
 | 
			
		||||
		var parseConversationMessage = function(info){
 | 
			
		||||
		const parseConversationMessage = function(info){
 | 
			
		||||
			if(info.file != null)
 | 
			
		||||
			{
 | 
			
		||||
				files.add(info.file.url);
 | 
			
		||||
@@ -222,6 +232,9 @@ ComunicWeb.components.account.export.worker = {
 | 
			
		||||
		//Comments
 | 
			
		||||
		data.comments.forEach(parseComment);
 | 
			
		||||
 | 
			
		||||
		// Conversations list
 | 
			
		||||
		data.conversations_list.forEach(parseConversation);
 | 
			
		||||
 | 
			
		||||
		//Conversation message
 | 
			
		||||
		//* All from users
 | 
			
		||||
		data.all_conversation_messages.forEach(parseConversationMessage);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user