diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts index 53c7751a..935e1ef3 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts @@ -275,11 +275,12 @@ export class GroupComponent implements OnInit, OnDestroy { switch (res.SSVC_TYPE) { case SSVC_TYPE_QUERY_DEPT_USER_DATA: const userInfos = (res as DeptUserData).userInfos; - searchUserInfos.push( - ...userInfos.filter( - userInfo => userInfo.seq !== this.loginRes.userSeq - ) - ); + // searchUserInfos.push( + // ...userInfos.filter( + // userInfo => userInfo.seq !== this.loginRes.userSeq + // ) + // ); + searchUserInfos.push(...userInfos); break; case SSVC_TYPE_QUERY_DEPT_USER_RES: { 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 8dbe42d4..53ac2f1f 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 @@ -267,11 +267,12 @@ export class OrganizationComponent switch (res.SSVC_TYPE) { case SSVC_TYPE_QUERY_DEPT_USER_DATA: const userInfos = (res as DeptUserData).userInfos; - searchUserInfos.push( - ...userInfos.filter( - userInfo => userInfo.seq !== this.loginRes.userSeq - ) - ); + // searchUserInfos.push( + // ...userInfos.filter( + // userInfo => userInfo.seq !== this.loginRes.userSeq + // ) + // ); + searchUserInfos.push(...userInfos); break; case SSVC_TYPE_QUERY_DEPT_USER_RES: { 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 676860a9..6bdd98c4 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 @@ -118,7 +118,7 @@ [sessionVerinfo]="sessionVerinfo" [selectedUserList]="selectedUserList" [isChecked]="getCheckedUser(userInfo)" - [checkable]="true" + [checkable]="userInfo.seq !== loginRes.userSeq" [checkDisabled]="!getCheckableUser(userInfo)" (checkUser)="onCheckUser($event)" (click)="onToggleUser(userInfo)" diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts index 27283b69..bda43023 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts @@ -324,11 +324,12 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy { switch (res.SSVC_TYPE) { case SSVC_TYPE_QUERY_DEPT_USER_DATA: const userInfos = (res as DeptUserData).userInfos; - searchUserInfos.push( - ...userInfos.filter( - userInfo => userInfo.seq !== this.loginRes.userSeq - ) - ); + // searchUserInfos.push( + // ...userInfos.filter( + // userInfo => userInfo.seq !== this.loginRes.userSeq + // ) + // ); + searchUserInfos.push(...userInfos); break; case SSVC_TYPE_QUERY_DEPT_USER_RES: { @@ -507,6 +508,10 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy { this.changeDetectorRef.detectChanges(); } onToggleUser(userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN) { + if (userInfo.seq === this.loginRes.userSeq) { + return; + } + if (this.data.type === UserSelectDialogType.EditChatMember) { if ( this.data.curRoomUser.filter(user => user.seq === userInfo.seq).length > diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html index db59b40a..0b912069 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.html @@ -1,5 +1,5 @@