From 3a9be3ff9301518ec0786c7550bed8ca8c1124f2 Mon Sep 17 00:00:00 2001 From: leejinho Date: Tue, 21 Jan 2020 16:36:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=ED=99=94=EB=B0=A9=20>=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=ED=95=84=20>=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=ED=8C=9D=EC=97=85=20=EC=98=A4=ED=94=88=20=EC=95=88=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../messenger/components/messages.component.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 }); }