mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -109,7 +109,7 @@ export class AuthService {
|
||||
|
||||
//Login to rocketChat server2
|
||||
//user: UserForm
|
||||
async loginChat(user: any) {
|
||||
async loginChat() {
|
||||
|
||||
const expirationMinutes = 60;
|
||||
let date = new Date().getTime();
|
||||
@@ -136,12 +136,12 @@ export class AuthService {
|
||||
this.presentAlert('Network error');
|
||||
}
|
||||
|
||||
this.autoLoginChat(expirationDate.getTime() - date, user);
|
||||
this.autoLoginChat(expirationDate.getTime() - date);
|
||||
}
|
||||
|
||||
async autoLoginChat(expirationDate:number, user:any){
|
||||
async autoLoginChat(expirationDate:number){
|
||||
setTimeout(()=>{
|
||||
this.loginChat(user);
|
||||
this.loginChat();
|
||||
}, expirationDate)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user