This commit is contained in:
tiago.kayaya
2021-04-14 13:56:38 +01:00
parent e4b3c6b2b3
commit eb189b6b2a
15 changed files with 482 additions and 9 deletions
@@ -14,6 +14,7 @@ export class EditGroupPage implements OnInit {
selectedDuration = ['','',''];
groupName:string;
room:any;
roomId:string;
constructor(
private modalController: ModalController,
@@ -21,12 +22,19 @@ export class EditGroupPage implements OnInit {
private chatService: ChatService,
private navParams: NavParams,
) {
this.room = this.navParams.get('room');
this.groupName = this.room.name.split('-').join(' ');
this.roomId = this.navParams.get('roomId');
}
ngOnInit() {
console.log(this.room);
this.getRoomInfo();
}
getRoomInfo(){
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
this.room = room['room'];
console.log(this.room);
this.groupName = this.room.name.split('-').join(' ');
});
}
close(){