mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Can easily get information about a single user
This commit is contained in:
		@@ -181,6 +181,22 @@ function getUserInfo(usersID, afterGetUserInfo, forceRequest){
 | 
			
		||||
	ComunicWeb.user.userInfos.getUserInfos(usersID, afterGetUserInfo, forceRequest);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Get information about a single user asynchronously
 | 
			
		||||
 * 
 | 
			
		||||
 * @param {Number} userID Target user ID
 | 
			
		||||
 */
 | 
			
		||||
function userInfo(userID) {
 | 
			
		||||
    return new Promise((res, err) => {
 | 
			
		||||
        getUserInfo(userID, (data) => {
 | 
			
		||||
            if(data.error)
 | 
			
		||||
                err(data.error)
 | 
			
		||||
            else
 | 
			
		||||
                res(data)
 | 
			
		||||
        }, false);
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Display message on browser console
 | 
			
		||||
 * 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user