mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Current conversation is highlited
This commit is contained in:
		@@ -127,6 +127,10 @@ ComunicWeb.pages.conversations.listPane = {
 | 
			
		||||
			args.opener(info.ID);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		//Check if it is the current conversation
 | 
			
		||||
		if(args.currConvID == info.ID)
 | 
			
		||||
			convLink.className = " selected";
 | 
			
		||||
 | 
			
		||||
		//Add conversation last activity on the rigth
 | 
			
		||||
		var lastActivityContainer = createElem2({
 | 
			
		||||
			appendTo: convLink,
 | 
			
		||||
 
 | 
			
		||||
@@ -55,21 +55,23 @@ ComunicWeb.pages.conversations.main = {
 | 
			
		||||
			ComunicWeb.common.page.update_uri("Conversations", "conversations/" + id);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//Display the list of conversation
 | 
			
		||||
		ComunicWeb.pages.conversations.listPane.display(leftArea, {
 | 
			
		||||
			opener: conversationOpener
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		//Check if a conversation has to be opened
 | 
			
		||||
		var currConvID = 0;
 | 
			
		||||
		if(args.subfolder){
 | 
			
		||||
 | 
			
		||||
			//Determine conversation ID
 | 
			
		||||
			var convID = args.subfolder;
 | 
			
		||||
			if(convID.includes("/"))
 | 
			
		||||
				convID = convID.split("/")[0];
 | 
			
		||||
				
 | 
			
		||||
			currConvID = Number(convID);
 | 
			
		||||
			//Open the conversation
 | 
			
		||||
			conversationOpener(Number(convID));
 | 
			
		||||
			conversationOpener(currConvID);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//Display the list of conversation
 | 
			
		||||
		ComunicWeb.pages.conversations.listPane.display(leftArea, {
 | 
			
		||||
			opener: conversationOpener,
 | 
			
		||||
			currConvID: currConvID
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user