mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Bug on login when chat is down
This commit is contained in:
@@ -340,18 +340,22 @@ export class ChatService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setheader() {
|
setheader() {
|
||||||
if (this.p.userPermission(this.p.permissionList.Chat.access)) {
|
try {
|
||||||
this.loggedUserChat = this.authService.ValidatedUserChat;
|
|
||||||
this.headers = new HttpHeaders();
|
|
||||||
|
|
||||||
if (this.p.userPermission(this.p.permissionList.Chat.access)) {
|
if (this.p.userPermission(this.p.permissionList.Chat.access)) {
|
||||||
//
|
this.loggedUserChat = this.authService.ValidatedUserChat;
|
||||||
this.headers = this.headers.set('X-User-Id', SessionStore.user.ChatData.data.userId);
|
this.headers = new HttpHeaders();
|
||||||
this.headers = this.headers.set('X-Auth-Token', SessionStore.user.ChatData.data.authToken);
|
|
||||||
this.options = {
|
if (this.p.userPermission(this.p.permissionList.Chat.access)) {
|
||||||
headers: this.headers,
|
//
|
||||||
};
|
this.headers = this.headers.set('X-User-Id', SessionStore.user.ChatData.data.userId);
|
||||||
|
this.headers = this.headers.set('X-Auth-Token', SessionStore.user.ChatData.data.authToken);
|
||||||
|
this.options = {
|
||||||
|
headers: this.headers,
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user