대화방 최근대화 리스트 갱신되지 않는 문제 수정 :: 대화리스트에 virture scroll 적용부분 원복.
This commit is contained in:
parent
72733b966a
commit
b7b83c92cc
|
@ -50,7 +50,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<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
|
||||
itemSize="80"
|
||||
perfectScrollbar
|
||||
|
@ -67,7 +80,7 @@
|
|||
class="ucap-clickable"
|
||||
>
|
||||
</ucap-room-list-item>
|
||||
</cdk-virtual-scroll-viewport>
|
||||
</cdk-virtual-scroll-viewport> -->
|
||||
</div>
|
||||
<div *ngIf="!!isSearch" class="app-layout-chat-left-sidenav-chat-list search">
|
||||
<perfect-scrollbar fxFlex="1 1 auto">
|
||||
|
|
|
@ -5,7 +5,8 @@ import {
|
|||
OnDestroy,
|
||||
ViewChild,
|
||||
AfterViewChecked,
|
||||
Input
|
||||
Input,
|
||||
ChangeDetectorRef
|
||||
} from '@angular/core';
|
||||
import {
|
||||
ucapAnimations,
|
||||
|
@ -84,7 +85,8 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||
private logger: NGXLogger,
|
||||
private dialogService: DialogService,
|
||||
private sessionStorageService: SessionStorageService,
|
||||
private translateService: TranslateService
|
||||
private translateService: TranslateService,
|
||||
private changeDetectorRef: ChangeDetectorRef
|
||||
) {
|
||||
this.sessionVerinfo = this.sessionStorageService.get<VersionInfo2Response>(
|
||||
KEY_VER_INFO
|
||||
|
@ -160,6 +162,8 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||
if (!!this.psDirectiveRef) {
|
||||
this.psDirectiveRef.update();
|
||||
}
|
||||
|
||||
// this.changeDetectorRef.detectChanges();
|
||||
})
|
||||
)
|
||||
.subscribe();
|
||||
|
|
Loading…
Reference in New Issue
Block a user