mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-10-31 02:04:53 +00:00 
			
		
		
		
	Fix bad refresh
This commit is contained in:
		| @@ -270,7 +270,7 @@ const ConvChatWindow = { | |||||||
| 	 * @param {Object} conversationWindow Informations about the conversation window | 	 * @param {Object} conversationWindow Informations about the conversation window | ||||||
| 	 * @return {Boolean} True for a success | 	 * @return {Boolean} True for a success | ||||||
| 	 */ | 	 */ | ||||||
| 	load: async function(conversationID, conversationWindow) { | 	load: async function(conversationID, conversationWindow, forceRefresh) { | ||||||
|  |  | ||||||
| 		try { | 		try { | ||||||
|  |  | ||||||
| @@ -284,7 +284,7 @@ const ConvChatWindow = { | |||||||
| 						rej(info) | 						rej(info) | ||||||
| 					else | 					else | ||||||
| 						res(info) | 						res(info) | ||||||
| 				}); | 				}, forceRefresh); | ||||||
| 			}) | 			}) | ||||||
|  |  | ||||||
| 			const users = await getUsers(conv.members.map(m => m.user_id)); | 			const users = await getUsers(conv.members.map(m => m.user_id)); | ||||||
| @@ -730,7 +730,7 @@ const ConvChatWindow = { | |||||||
| 	 */ | 	 */ | ||||||
| 	reload: function(conversation) { | 	reload: function(conversation) { | ||||||
| 		ConvChatWindow.unload(conversation.infos.id, true); | 		ConvChatWindow.unload(conversation.infos.id, true); | ||||||
| 		ConvChatWindow.load(conversation.infos.id, conversation.box); | 		ConvChatWindow.load(conversation.infos.id, conversation.box, true); | ||||||
| 	}, | 	}, | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user