fix chat room names

This commit is contained in:
Peter Maquiran
2022-10-04 16:50:55 +01:00
parent ea89f72a33
commit a1f8d7461c
5 changed files with 39 additions and 7 deletions
@@ -37,7 +37,12 @@ export class EditGroupPage implements OnInit {
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
this.room = room['room'];
this.groupName = this.room.name.split('-').join(' ');
try {
this.groupName = this.room.name.split('-').join(' ');
} catch(error) {
this.groupName = this.room.name;
}
});
}