swipe-delete button

This commit is contained in:
tiago.kayaya
2021-04-20 00:28:16 +01:00
parent 2499fe7794
commit 77075b3473
7 changed files with 70 additions and 13 deletions
+18
View File
@@ -119,6 +119,12 @@ export class ChatService {
}
return this.http.post(environment.apiChatUrl+'chat.sendMessage', body, opts);
}
leaveRoom(body:any){
let opts = {
headers: this.headers,
}
return this.http.post(environment.apiChatUrl+'rooms.leave', body, opts);
}
//Load members from a chat
getMembers(roomId:any){
@@ -205,6 +211,12 @@ export class ChatService {
closeChannel(body:any){
return this.http.post(environment.apiChatUrl+'channels.close', body, this.options);
}
removeChannelMember(body:any){
let opts = {
headers: this.headers,
}
return this.http.post(environment.apiChatUrl+'channels.kick', body, opts);
}
deleteGroup(body:any){
return this.http.post(environment.apiChatUrl+'groups.delete', body, this.options);
}
@@ -227,5 +239,11 @@ export class ChatService {
renameGroup(body:any){
return this.http.post(environment.apiChatUrl+'groups.rename', body, this.options);
}
removeGroupMember(body:any){
let opts = {
headers: this.headers,
}
return this.http.post(environment.apiChatUrl+'groups.kick', body, opts);
}
}