leave group finished

This commit is contained in:
tiago.kayaya
2021-04-20 17:18:57 +01:00
parent 83ad684a8d
commit 55a15e4c14
8 changed files with 57 additions and 5 deletions
@@ -46,12 +46,12 @@ export class ChatPopoverPage implements OnInit {
this.room = room['room'];
if(this.room.t === 'p'){
this.chatService.closeGroup(body).subscribe(res=>{
this.chatService.leaveGroup(body).subscribe(res=>{
console.log(res);
});
}
else{
this.chatService.closeChannel(body).subscribe(res=>{
this.chatService.leaveChannel(body).subscribe(res=>{
console.log(res);
});
}