대화방 최근대화 리스트 갱신되지 않는 문제 수정 :: 대화리스트에 virture scroll 적용부분 원복.

This commit is contained in:
leejinho 2020-01-06 10:13:28 +09:00
parent 72733b966a
commit b7b83c92cc
2 changed files with 21 additions and 4 deletions

View File

@ -50,7 +50,20 @@
</div> </div>
</div> </div>
<div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list"> <div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list">
<cdk-virtual-scroll-viewport <perfect-scrollbar fxFlex="1 1 auto">
<ucap-room-list-item
*ngFor="let room of roomList"
[loginRes]="loginRes"
[roomInfo]="room"
[roomUserInfo]="getRoomUserList(room)"
[sessionVerinfo]="sessionVerinfo"
(click)="onClickContextMenu('SELECT_ROOM', room)"
(contextmenu)="onContextMenuChat($event, room)"
class="ucap-clickable"
>
</ucap-room-list-item>
</perfect-scrollbar>
<!-- <cdk-virtual-scroll-viewport
#cvsvChatList #cvsvChatList
itemSize="80" itemSize="80"
perfectScrollbar perfectScrollbar
@ -67,7 +80,7 @@
class="ucap-clickable" class="ucap-clickable"
> >
</ucap-room-list-item> </ucap-room-list-item>
</cdk-virtual-scroll-viewport> </cdk-virtual-scroll-viewport> -->
</div> </div>
<div *ngIf="!!isSearch" class="app-layout-chat-left-sidenav-chat-list search"> <div *ngIf="!!isSearch" class="app-layout-chat-left-sidenav-chat-list search">
<perfect-scrollbar fxFlex="1 1 auto"> <perfect-scrollbar fxFlex="1 1 auto">

View File

@ -5,7 +5,8 @@ import {
OnDestroy, OnDestroy,
ViewChild, ViewChild,
AfterViewChecked, AfterViewChecked,
Input Input,
ChangeDetectorRef
} from '@angular/core'; } from '@angular/core';
import { import {
ucapAnimations, ucapAnimations,
@ -84,7 +85,8 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
private logger: NGXLogger, private logger: NGXLogger,
private dialogService: DialogService, private dialogService: DialogService,
private sessionStorageService: SessionStorageService, private sessionStorageService: SessionStorageService,
private translateService: TranslateService private translateService: TranslateService,
private changeDetectorRef: ChangeDetectorRef
) { ) {
this.sessionVerinfo = this.sessionStorageService.get<VersionInfo2Response>( this.sessionVerinfo = this.sessionStorageService.get<VersionInfo2Response>(
KEY_VER_INFO KEY_VER_INFO
@ -160,6 +162,8 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
if (!!this.psDirectiveRef) { if (!!this.psDirectiveRef) {
this.psDirectiveRef.update(); this.psDirectiveRef.update();
} }
// this.changeDetectorRef.detectChanges();
}) })
) )
.subscribe(); .subscribe();