This commit is contained in:
Peter Maquiran
2022-05-06 15:56:18 +01:00
18 changed files with 102 additions and 41 deletions
+5 -5
View File
@@ -50,7 +50,7 @@ export class ChatService {
}
getDocumentDetails(url:string){
getDocumentDetails(url:string) {
let headersc = new HttpHeaders();
headersc = headersc.set('X-User-Id', this.loggedUserChat['data'].userId);
headersc = headersc.set('X-Auth-Token', this.loggedUserChat['data'].authToken);
@@ -71,19 +71,19 @@ export class ChatService {
});
}
getAllChannels(){
getAllChannels() {
return this.http.get(environment.apiChatUrl+'channels.list', this.options);
}
getAllUserChannels(){
getAllUserChannels() {
return this.http.get(environment.apiChatUrl+'channels.list.joined', this.options);
}
getAllRooms(){
getAllRooms() {
return this.http.get(environment.apiChatUrl+'rooms.get', this.options);
}
getRoomInfo(roomId:any){
getRoomInfo(roomId:any) {
let params = new HttpParams();
params = params.set("roomId", roomId);
let opts = {