fix rocket chat session

This commit is contained in:
Peter Maquiran
2022-01-29 20:16:39 +01:00
parent 34208d8040
commit acacb58d0d
4 changed files with 31 additions and 7 deletions
+6 -3
View File
@@ -27,19 +27,22 @@ export class ChatService {
constructor(
private http:HttpClient,
private httpService: HttpService,
private authService: AuthService,
public authService: AuthService,
private storage: Storage,
private storageService:StorageService,
)
{
this.loggedUserChat = authService.ValidatedUserChat;
this.setHeader()
}
setHeader() {
this.loggedUserChat = this.authService.ValidatedUserChat;
this.headers = new HttpHeaders();
this.headers = this.headers.set('X-User-Id', this.loggedUserChat['data'].userId);
this.headers = this.headers.set('X-Auth-Token', this.loggedUserChat['data'].authToken);
this.options = {
headers: this.headers,
};
}
getDocumentDetails(url:string){