1. 대화방 열때 ClearView 에서 Right drawer 닫기.

2. 로그아웃시 GroupComponent 에서 userInfo is null exception 발생 부분 보완코드
3. 파일함, 앨범함 오픈 후 로그아웃 진행시 roomInfo.roomSeq 에서 null 발생하는 부분 보완코드
This commit is contained in:
leejinho 2020-01-08 13:21:09 +09:00
parent 1af702bccd
commit 64bc91093b
6 changed files with 12 additions and 4 deletions

View File

@ -144,7 +144,9 @@ export class GroupComponent implements OnInit, OnDestroy {
.pipe(
select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
tap(loginRes => {
if (!!loginRes) {
this.loginRes = loginRes;
}
})
)
.subscribe();

View File

@ -119,6 +119,8 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
openProfile = new EventEmitter<{
userSeq: number;
}>();
@Output()
closeRightDrawer = new EventEmitter();
@ViewChild('chatForm', { static: false })
private chatForm: UCapUiChatFormComponent;
@ -410,6 +412,9 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
* .
*/
clearView() {
// Right Drawer closed..
this.closeRightDrawer.emit();
// Sticker Selector Clear..
this.isShowStickerSelector = false;
this.selectedSticker = undefined;

View File

@ -100,6 +100,7 @@ export class AlbumBoxComponent implements OnInit, OnDestroy {
tap(([roomInfo, fileInfoList, fileInfoCheckList]) => {
this.fileInfoList = fileInfoList.filter(fileInfo => {
if (
!!roomInfo &&
fileInfo.roomSeq === roomInfo.roomSeq &&
(fileInfo.type === FileType.Image ||
fileInfo.type === FileType.Video)

View File

@ -109,6 +109,7 @@ export class FileBoxComponent implements OnInit, OnDestroy {
this.fileInfoList = fileInfoList.filter(fileInfo => {
if (
!!roomInfo &&
fileInfo.roomSeq === roomInfo.roomSeq &&
(fileInfo.type === FileType.File ||
fileInfo.type === FileType.Sound)

View File

@ -113,9 +113,7 @@ export class TopBarComponent implements OnInit, OnDestroy {
>(KEY_VER_INFO);
// WebLink init..
if (!this.weblink || this.weblink.length === 0) {
this.initWebLink();
}
})
)
.subscribe();

View File

@ -37,6 +37,7 @@
<app-layout-messenger-messages
*ngIf="!!(this.selectedChat$ | async)"
(openProfile)="onClickOpenProfile($event)"
(closeRightDrawer)="onCloseRightDrawer()"
></app-layout-messenger-messages>
</div>
<mat-drawer