mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Fixed issue on userinfos cache
This commit is contained in:
		@@ -25,8 +25,8 @@ ComunicWeb.user.userInfos = {
 | 
				
			|||||||
            userID = ComunicWeb.user.userLogin.__userID;
 | 
					            userID = ComunicWeb.user.userLogin.__userID;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //First, check if informations are already available in the cache
 | 
					        //First, check if informations are already available in the cache
 | 
				
			||||||
        if(this.usersInfos[userID]){
 | 
					        if(this.usersInfos["user-"+userID]){
 | 
				
			||||||
            afterGetUserInfos(this.usersInfos[userID]); //Then return these informations now
 | 
					            afterGetUserInfos(this.usersInfos["user-"+userID]); //Then return these informations now
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
@@ -48,7 +48,7 @@ ComunicWeb.user.userInfos = {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
                //Save result
 | 
					                //Save result
 | 
				
			||||||
                ComunicWeb.user.userInfos.usersInfos[""+userID] = result[0];
 | 
					                ComunicWeb.user.userInfos.usersInfos["user-"+userID] = result[0];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                //Return result
 | 
					                //Return result
 | 
				
			||||||
                afterGetUserInfos(result[0]);
 | 
					                afterGetUserInfos(result[0]);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user