change name after update

This commit is contained in:
tiago.kayaya
2021-09-07 15:19:56 +01:00
parent 9eccabdd17
commit 83733aa6d3
3 changed files with 13 additions and 3 deletions
@@ -62,7 +62,16 @@ export class EditGroupPage implements OnInit {
else{
console.log("Invalid name!");
}
this.close();
this.updateGroup();
}
updateGroup(){
this.showLoader = true;
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
this.room = room['room'];
this.showLoader = false;
this.openGroupMessage.emit(this.room._id);
});
}
_ionChange(event){