Bug on login when chat is down

This commit is contained in:
Eudes Inácio
2022-06-10 13:44:48 +01:00
parent 4275d71a43
commit 5534ea728f
+4
View File
@@ -340,6 +340,7 @@ export class ChatService {
} }
setheader() { setheader() {
try {
if (this.p.userPermission(this.p.permissionList.Chat.access)) { if (this.p.userPermission(this.p.permissionList.Chat.access)) {
this.loggedUserChat = this.authService.ValidatedUserChat; this.loggedUserChat = this.authService.ValidatedUserChat;
this.headers = new HttpHeaders(); this.headers = new HttpHeaders();
@@ -353,6 +354,9 @@ export class ChatService {
}; };
} }
} }
} catch (error) {
console.log(error)
}
} }
refreshtoken() { refreshtoken() {