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
@@ -1139,7 +1139,12 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
// console.log('ROOM',room)
this.room = room['room'];
if (this.room.name) {
this.roomName = this.room.name.split('-').join(' ');
try {
this.roomName = this.room.name.split('-').join(' ');
} catch(error) {
this.roomName = this.room.name;
}
}