검색시 본인 검색되지만 선택이 필요할 경우에는 선택되지 않도록 수정.
This commit is contained in:
parent
c289df1c47
commit
1de4d72472
|
@ -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:
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
{
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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 >
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="chat-messages" #scrollMe>
|
||||
<div class="message-row" *ngIf="eventRemain">
|
||||
<div class="message-row" *ngIf="eventRemain && messages.length > 0">
|
||||
<button mat-button (click)="onClickMore($event)">
|
||||
이전 대화 보기
|
||||
<span
|
||||
|
|
Loading…
Reference in New Issue
Block a user