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 3672db1a..ba4ec505 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 @@ -1666,14 +1666,13 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { } onClickOpenProfile(userSeq: number) { + const roomType = this.roomInfoSubject.value.roomType; if ( - [ - RoomType.Allim, - RoomType.Bot, - RoomType.Link, - RoomType.Allim_Elephant, - RoomType.Allim_TMS - ].some(v => v === this.roomInfoSubject.value.roomType) + roomType !== RoomType.Allim && + roomType !== RoomType.Bot && + roomType !== RoomType.Link && + roomType !== RoomType.Allim_Elephant && + roomType !== RoomType.Allim_TMS ) { this.openProfile.emit({ userSeq }); }