mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Fix reload issue
This commit is contained in:
		@@ -175,7 +175,7 @@ const APIClient = {
 | 
			
		||||
                //Log error
 | 
			
		||||
                ComunicWeb.debug.logMessage("Got an error in a XHR request! \n Request URL: "+requestURL+" \n Response : "+apiXHR.responseText);
 | 
			
		||||
 | 
			
		||||
                if (result.error.code == 412) {
 | 
			
		||||
                if (result.error.code == 412 && signed_in()) {
 | 
			
		||||
                    UserLogin.__userLogin = false;
 | 
			
		||||
                    ComunicWeb.user.loginTokens.deleteLoginTokens();
 | 
			
		||||
                    System.restart();
 | 
			
		||||
 
 | 
			
		||||
@@ -102,7 +102,7 @@ function openGroupPage(info){
 | 
			
		||||
 * @return {Boolean} True if the user is signed in / false else
 | 
			
		||||
 */
 | 
			
		||||
function signed_in(){
 | 
			
		||||
    return ComunicWeb.user.userLogin.getUserLoginState();
 | 
			
		||||
    return UserLogin.getUserLoginState();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -112,7 +112,7 @@ function signed_in(){
 | 
			
		||||
 * @return {Integer} The ID of the user
 | 
			
		||||
 */
 | 
			
		||||
function userID(){
 | 
			
		||||
    return ComunicWeb.user.userLogin.getUserID();
 | 
			
		||||
    return UserLogin.getUserID();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user