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:
@@ -25,6 +25,7 @@ export class MessagesOptionsPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.chatService.refreshtoken();
|
||||
}
|
||||
|
||||
close(){
|
||||
@@ -42,12 +43,6 @@ export class MessagesOptionsPage implements OnInit {
|
||||
let body = { "roomId": this.roomId }
|
||||
this.chatService.removeChatRoom(body).subscribe(res=>{
|
||||
|
||||
},(error: HttpErrorResponse) => {
|
||||
if(error.status === 401){
|
||||
this.chatService.refreshtoken()
|
||||
this.closeChatRoom();
|
||||
}
|
||||
|
||||
});
|
||||
this.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user