mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Refresh token done
This commit is contained in:
@@ -48,7 +48,7 @@ export class ChatOptionsFeaturesPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.chatService.refreshtoken();
|
||||
}
|
||||
|
||||
notImplemented() {
|
||||
@@ -118,12 +118,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
|
||||
|
||||
this.chatService.sendMessage(body).subscribe(res=> {
|
||||
//
|
||||
},(error: HttpErrorResponse) => {
|
||||
if(error.status === 401){
|
||||
this.chatService.refreshtoken()
|
||||
this.chatService.sendMessage(body);
|
||||
}
|
||||
|
||||
});
|
||||
//
|
||||
};
|
||||
@@ -149,12 +143,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
|
||||
this.chatService.sendMessage(body).subscribe(res=> {
|
||||
|
||||
|
||||
},(error: HttpErrorResponse) => {
|
||||
if(error.status === 401){
|
||||
this.chatService.refreshtoken()
|
||||
this.chatService.sendMessage(body);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user