setHeader method created

This commit is contained in:
Eudes Inácio
2022-06-09 10:53:25 +01:00
parent 73d0696ea6
commit 1bdf3daf12
2 changed files with 353 additions and 335 deletions
+11 -1
View File
@@ -133,6 +133,16 @@ export class ChatPage implements OnInit {
ngOnInit() {
/* let data = {
status: "success",
data: {
userId: "CqYSKR5hrAumZihs7",
authToken: "bvh5BH98Av5ShMnEW94Cwm1Hf-yHEHbl121ijq5Odc_sdvs"
}
}
SessionStore.user.ChatData = data
SessionStore.save() */
this.segment = "Contactos";
this.authService.userData$.subscribe((res: any) => {
@@ -510,7 +520,7 @@ export class ChatPage implements OnInit {
},(error: HttpErrorResponse) => {
if(error.status === 401){
this.chatService.refreshtoken()
this.getChatMembers();
//this.getChatMembers();
}
});