From 7e6099a777904ddaa80048c159fff8216f5498d3 Mon Sep 17 00:00:00 2001 From: leejinho Date: Thu, 6 Feb 2020 10:24:47 +0900 Subject: [PATCH] =?UTF-8?q?#=20=EC=9D=B4=EC=8A=88=EC=B2=98=EB=A6=AC=20215,?= =?UTF-8?q?=20216,=20218?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/left-sidenav/chat.component.ts | 6 ++-- .../left-sidenav/organization.component.ts | 4 +++ .../chat/create-chat.dialog.component.html | 13 +++++--- .../components/user-list-item.component.html | 1 + .../components/user-list-item.component.ts | 30 +++++++++---------- 5 files changed, 33 insertions(+), 21 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.ts index 53cdeb55..59012b13 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/chat.component.ts @@ -137,7 +137,7 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked { for (const ru of roomUserShort) { for (const u of ru.userInfos) { if (u.seq !== this.loginRes.userSeq) { - if (!!u.name && '' !== u.name.trim()) { + if (!!u.name && '' !== u.name.trim() && u.isJoinRoom) { recommendedWordList.push(u.name); } } @@ -285,7 +285,9 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked { value => roomInfo.roomSeq === value.roomSeq ); if (-1 < i) { - return this.roomUserShortList[i].userInfos; + return this.roomUserShortList[i].userInfos.filter( + user => user.isJoinRoom + ); } } } diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts index b5a979a2..2a2b75c8 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts @@ -608,6 +608,10 @@ export class OrganizationComponent event.preventDefault(); event.stopPropagation(); + if (userInfo.seq === this.loginRes.userSeq) { + return; + } + this.orgUserContextMenuPosition.x = event.clientX + 'px'; this.orgUserContextMenuPosition.y = event.clientY + 'px'; this.orgUserContextMenuTrigger.menu.focusFirstItem('mouse'); diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html index c3243101..aebb11ec 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html @@ -59,7 +59,9 @@ --> - +
@@ -88,6 +90,7 @@ device_hub--> - +
- +