diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts index bb6ecf4c..5302ce94 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts @@ -339,6 +339,8 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { menuType === 'EDIT_ROOM' ) { if ( + !this.roomInfo || + !this.roomInfo.roomType || this.roomInfo.roomType === RoomType.Mytalk || this.roomInfo.roomType === RoomType.Allim || this.roomInfo.roomType === RoomType.Bot ||