This commit is contained in:
tiago.kayaya
2022-02-16 13:52:32 +01:00
parent de1f91935e
commit 170c5395a4
19 changed files with 93 additions and 183 deletions
+6 -13
View File
@@ -56,9 +56,9 @@ export class AuthService {
}
if (localStorage.getItem("userChat") != null) {
/* if (localStorage.getItem("userChat") != null) {
this.ValidatedUserChat = JSON.parse(localStorage.getItem('userChat'));
}
} */
}
@@ -112,7 +112,7 @@ export class AuthService {
//user: UserForm
async loginChat() {
const expirationMinutes = 30;
/* const expirationMinutes = 30;
let date = new Date().getTime();
let expirationDate = new Date(new Date().getTime() + expirationMinutes*60*1000);
@@ -135,7 +135,7 @@ export class AuthService {
this.presentAlert('Network error');
}
this.autoLoginChat(expirationDate.getTime() - date);
this.autoLoginChat(expirationDate.getTime() - date); */
}
async autoLoginChat(expirationDate:number){
@@ -145,7 +145,7 @@ export class AuthService {
}
loginToChatWs() {
setTimeout(()=>{
/* setTimeout(()=>{
this.WsChatService.connect();
this.WsChatService.login().then((message) => {
@@ -189,14 +189,12 @@ export class AuthService {
console.log(e)
return false
}
}
}
return false
}
this.NfService.downloadFileMsg = async (message: MessageService, room?: RoomService) => {
console.log('FILE TYPE', message.file.type)
@@ -224,15 +222,10 @@ export class AuthService {
});
return true
}
return false
}
};
}, 1)
}, 1) */
}
autologout(expirationDate:number){