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 f26cb875..1a068024 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 @@ -886,13 +886,17 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { }); if (!!result && !!result.choice && result.choice) { - const userSeqs: number[] = []; + const userSeqs: number[] = this.userInfoList.map( + userInfo => userInfo.seq + ); if ( !!result.selectedUserList && result.selectedUserList.length > 0 ) { - result.selectedUserList.map(user => { - userSeqs.push(user.seq); + result.selectedUserList.forEach(user => { + if (userSeqs.indexOf(user.seq) < 0) { + userSeqs.push(user.seq); + } }); } diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/room-user-list.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/room-user-list.component.ts index 560935c2..af0f218b 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/room-user-list.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/room-user-list.component.ts @@ -3,7 +3,7 @@ import { OnInit, OnDestroy, Output, - EventEmitter, + EventEmitter } from '@angular/core'; import { Subscription } from 'rxjs'; import { Store, select } from '@ngrx/store'; @@ -21,13 +21,13 @@ import { DialogService } from '@ucap-webmessenger/ui'; import { SelectGroupDialogComponent, SelectGroupDialogResult, - SelectGroupDialogData, + SelectGroupDialogData } from '../../dialogs/group/select-group.dialog.component'; import { GroupDetailData } from '@ucap-webmessenger/protocol-sync'; import { CreateChatDialogComponent, CreateChatDialogResult, - CreateChatDialogData, + CreateChatDialogData } from '../../dialogs/chat/create-chat.dialog.component'; import { UserSelectDialogType } from '@app/types'; import { LoginResponse } from '@ucap-webmessenger/protocol-authentication'; @@ -36,7 +36,7 @@ import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type'; @Component({ selector: 'app-layout-chat-right-drawer-room-user-list', templateUrl: './room-user-list.component.html', - styleUrls: ['./room-user-list.component.scss'], + styleUrls: ['./room-user-list.component.scss'] }) export class RoomUserListComponent implements OnInit, OnDestroy { @Output() @@ -105,15 +105,19 @@ export class RoomUserListComponent implements OnInit, OnDestroy { title: 'Edit Chat Member', curRoomUser: this.userInfoList.filter( user => user.seq !== this.loginRes.userSeq - ), - }, + ) + } }); if (!!result && !!result.choice && result.choice) { - const userSeqs: number[] = []; + const userSeqs: number[] = this.userInfoList.map( + userInfo => userInfo.seq + ); if (!!result.selectedUserList && result.selectedUserList.length > 0) { - result.selectedUserList.map(user => { - userSeqs.push(user.seq); + result.selectedUserList.forEach(user => { + if (userSeqs.indexOf(user.seq) < 0) { + userSeqs.push(user.seq); + } }); } @@ -125,8 +129,8 @@ export class RoomUserListComponent implements OnInit, OnDestroy { RoomStore.inviteOrOpen({ req: { divCd: 'Invite', - userSeqs, - }, + userSeqs + } }) ); } @@ -141,8 +145,8 @@ export class RoomUserListComponent implements OnInit, OnDestroy { >(SelectGroupDialogComponent, { width: '600px', data: { - title: 'Group Select', - }, + title: 'Group Select' + } }); if (!!result && !!result.choice && result.choice) { @@ -159,7 +163,7 @@ export class RoomUserListComponent implements OnInit, OnDestroy { this.store.dispatch( SyncStore.updateGroupMember({ oldGroup, - trgtUserSeq, + trgtUserSeq }) ); } 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 861ad647..a310910a 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 @@ -70,9 +70,9 @@ chat
- 부서원 전체 선택 */ onCheckAllUser(params: { isChecked: boolean; userInfos: (UserInfo | UserInfoSS | UserInfoF | UserInfoDN)[]; diff --git a/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.html b/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.html index b5f465bd..7ab7cbe3 100644 --- a/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.html +++ b/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.html @@ -47,27 +47,38 @@ - 내 프로필 - 즐겨찾기 - ({{ node.countOfChildren }}명) + 내 프로필 + + + 즐겨찾기 + + ({{ node.countOfChildren }}명) {{ node.groupDetail.name }} - ({{ node.countOfChildren }}명) + ({{ node.countOfChildren }}명) + +