Implement add contacts to group-chat

This commit is contained in:
tiago.kayaya
2021-01-22 15:28:52 +01:00
parent f3c15e603a
commit 1d4a292956
6 changed files with 77 additions and 16 deletions
+13 -1
View File
@@ -194,7 +194,6 @@ export class ChatService {
return this.http.get(environment.apiChatUrl+'groups.history', opts);
}
getPublicGroupMessages(roomId:any){
let params = new HttpParams();
params = params.set("roomId", roomId);
@@ -216,5 +215,18 @@ export class ChatService {
deleteChannel(body:any){
return this.http.post(environment.apiChatUrl+'channels.delete', body, this.options);
}
addUserToGroup(body:any){
return this.http.post(environment.apiChatUrl+'groups.invite', body, this.options);
}
getGroupInfo(roomId:any){
let params = new HttpParams();
params = params.set("roomId", roomId);
let opts = {
headers: this.headers,
params: params
}
return this.http.get(environment.apiChatUrl+'groups.info', opts);
}
}