mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix
This commit is contained in:
@@ -109,19 +109,19 @@ export class ChatPopoverPage implements OnInit {
|
||||
}
|
||||
|
||||
//Delete
|
||||
deleteGroup(){
|
||||
let body = { "roomId":this.roomId, }
|
||||
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
|
||||
deleteGroup() {
|
||||
let body = { "roomId":this.roomId }
|
||||
this.chatService.getRoomInfo(this.roomId).subscribe(room => {
|
||||
this.room = room['room'];
|
||||
|
||||
if(this.room.t === 'p') {
|
||||
this.chatService.deleteGroup(body).subscribe(res=>{
|
||||
this.ChatSystemService.deleteRoom(this.roomId)
|
||||
// this.ChatSystemService.deleteRoom(this.roomId)
|
||||
});
|
||||
}
|
||||
else {
|
||||
this.chatService.deleteChannel(body).subscribe(res=>{
|
||||
this.ChatSystemService.deleteRoom(this.roomId)
|
||||
// this.ChatSystemService.deleteRoom(this.roomId)
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user