This commit is contained in:
leejinho 2020-02-13 11:01:10 +09:00
parent d3f67d587b
commit 2bd3e42cc7
3 changed files with 14 additions and 4 deletions

View File

@ -295,5 +295,7 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
);
}
}
return [];
}
}

View File

@ -524,6 +524,10 @@ export class OrganizationComponent
/** 전체선택 이벤트 */
onCheckAllUser(value: boolean) {
if (!this.loginRes) {
return false;
}
this.checkAllUser.emit({
isChecked: value,
userInfos: (this.isShowSearch
@ -543,7 +547,7 @@ export class OrganizationComponent
this.checkUser.emit(params);
}
onToggleUser(userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN) {
if (userInfo.seq === this.loginRes.userSeq) {
if (!this.loginRes || userInfo.seq === this.loginRes.userSeq) {
return;
}
this.toggleUser.emit(userInfo);
@ -647,7 +651,7 @@ export class OrganizationComponent
event.preventDefault();
event.stopPropagation();
if (userInfo.seq === this.loginRes.userSeq) {
if (!this.loginRes || userInfo.seq === this.loginRes.userSeq) {
return;
}

View File

@ -180,7 +180,9 @@ export class MessagesComponent implements OnInit, OnDestroy {
this.roomInfoSubscription = this.roomInfo$.subscribe(roomInfo => {
if (
!this.roomInfo ||
(!!this.roomInfo && this.roomInfo.roomSeq !== roomInfo.roomSeq)
(!!this.roomInfo &&
!!roomInfo &&
this.roomInfo.roomSeq !== roomInfo.roomSeq)
) {
this.baseEventSeq = 0;
}
@ -201,7 +203,9 @@ export class MessagesComponent implements OnInit, OnDestroy {
if (
!this.roomInfo ||
(!!this.roomInfo && this.roomInfo.roomSeq !== roomInfo.roomSeq)
(!!this.roomInfo &&
!!roomInfo &&
this.roomInfo.roomSeq !== roomInfo.roomSeq)
) {
this.initEventMore();
}