mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
- delete group implemented
- add group in progress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user