mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Determine whether user is signed in or not on sidebar
This commit is contained in:
		@@ -226,8 +226,14 @@ ComunicWeb.components.sideBar.main = {
 | 
			
		||||
			onclick: (e) => e.stopImmediatePropagation()
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		if(friend.accepted == 1)
 | 
			
		||||
			subInfoEl.innerHTML = timeDiffToStr(friend.time_last_activity);
 | 
			
		||||
		// Check if friendship request has been accepted or not
 | 
			
		||||
		if(friend.accepted == 1) {
 | 
			
		||||
			if(ComunicWeb.common.date.time() - friend.time_last_activity < 30)
 | 
			
		||||
				subInfoEl.innerHTML = "<span style='color: green;'>Online</span>";
 | 
			
		||||
			else
 | 
			
		||||
				subInfoEl.innerHTML = timeDiffToStr(friend.time_last_activity);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		else {
 | 
			
		||||
 | 
			
		||||
			const respondRequest = function(accept) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user