유저검색 팝업에 본인 검색되지 않도록 수정

This commit is contained in:
leejinho 2019-12-19 17:19:36 +09:00
parent 002ecf23dd
commit c349500718
3 changed files with 18 additions and 3 deletions

View File

@ -274,7 +274,12 @@ export class GroupComponent implements OnInit, OnDestroy {
map(res => {
switch (res.SSVC_TYPE) {
case SSVC_TYPE_QUERY_DEPT_USER_DATA:
searchUserInfos.push(...(res as DeptUserData).userInfos);
const userInfos = (res as DeptUserData).userInfos;
searchUserInfos.push(
...userInfos.filter(
userInfo => userInfo.seq !== this.loginRes.userSeq
)
);
break;
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{

View File

@ -266,7 +266,12 @@ export class OrganizationComponent
map(res => {
switch (res.SSVC_TYPE) {
case SSVC_TYPE_QUERY_DEPT_USER_DATA:
searchUserInfos.push(...(res as DeptUserData).userInfos);
const userInfos = (res as DeptUserData).userInfos;
searchUserInfos.push(
...userInfos.filter(
userInfo => userInfo.seq !== this.loginRes.userSeq
)
);
break;
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{

View File

@ -323,7 +323,12 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
map(res => {
switch (res.SSVC_TYPE) {
case SSVC_TYPE_QUERY_DEPT_USER_DATA:
searchUserInfos.push(...(res as DeptUserData).userInfos);
const userInfos = (res as DeptUserData).userInfos;
searchUserInfos.push(
...userInfos.filter(
userInfo => userInfo.seq !== this.loginRes.userSeq
)
);
break;
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{