- delete group implemented

- add group in progress
This commit is contained in:
tiago.kayaya
2021-01-20 16:58:04 +01:00
parent bae1f89b73
commit 608eee8cc2
77 changed files with 1795 additions and 2388 deletions
@@ -27,6 +27,7 @@ export class ChatPopoverPage implements OnInit {
}
//Top menu options
//Close
leaveGroup(){
let body = { "roomId":this.room._id, }
if(this.room.t === 'p'){
@@ -39,6 +40,22 @@ export class ChatPopoverPage implements OnInit {
console.log(res);
});
}
this.popoverController.dismiss(true);
}
//Delete
deleteGroup(){
let body = { "roomId":this.room._id, }
if(this.room.t === 'p'){
this.chatService.deleteGroup(body).subscribe(res=>{
console.log(res);
});
}
else{
this.chatService.deleteChannel(body).subscribe(res=>{
console.log(res);
});
}
this.popoverController.dismiss(true);
}
}