mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix user chat list
This commit is contained in:
@@ -13,7 +13,7 @@ import { Observable, Subject } from "rxjs/Rx";
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ChatService {
|
||||
_headers: HttpHeaders;
|
||||
headers: HttpHeaders;
|
||||
options:any;
|
||||
options1:any;
|
||||
X_User_Id:any;
|
||||
@@ -27,26 +27,19 @@ export class ChatService {
|
||||
constructor(
|
||||
private http:HttpClient,
|
||||
private httpService: HttpService,
|
||||
public authService: AuthService,
|
||||
private authService: AuthService,
|
||||
private storage: Storage,
|
||||
private storageService:StorageService,
|
||||
)
|
||||
{}
|
||||
|
||||
get headers() {
|
||||
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.loggedUserChat = 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,
|
||||
headers: this.headers,
|
||||
};
|
||||
|
||||
return this._headers
|
||||
}
|
||||
|
||||
setHeader = () => {
|
||||
|
||||
}
|
||||
|
||||
getDocumentDetails(url:string){
|
||||
|
||||
Reference in New Issue
Block a user