bug fixed
This commit is contained in:
parent
3f4d863001
commit
2c71302e80
|
@ -16,7 +16,7 @@
|
|||
<div
|
||||
*ngIf="eventRemained && !!eventList && eventList.length > 0"
|
||||
class="message-row view-previous"
|
||||
[class.hide]="!scrollUpInitalized"
|
||||
[class.hide]="!showMore"
|
||||
>
|
||||
<button mat-button (click)="onClickMore($event)" class="bg-accent-dark">
|
||||
<svg
|
||||
|
|
|
@ -159,7 +159,7 @@ export class MessagesComponent implements OnInit, OnDestroy {
|
|||
existReadToHereEvent = true;
|
||||
hidden = false;
|
||||
swapped = false;
|
||||
initalized = false;
|
||||
showMore = false;
|
||||
|
||||
constructor(
|
||||
private logger: NGXLogger,
|
||||
|
@ -176,7 +176,7 @@ export class MessagesComponent implements OnInit, OnDestroy {
|
|||
});
|
||||
this.roomInfoSubscription = this.roomInfo$.subscribe(roomInfo => {
|
||||
this.roomInfo = roomInfo;
|
||||
this.initalized = false;
|
||||
this.showMore = false;
|
||||
|
||||
/** [S] initializing by changed room */
|
||||
// reset :: roomLastEventSeq
|
||||
|
@ -441,10 +441,10 @@ export class MessagesComponent implements OnInit, OnDestroy {
|
|||
0,
|
||||
() => {
|
||||
setTimeout(() => {
|
||||
this.postSwapScroll(useHide, useSwap);
|
||||
if (!!postCallback) {
|
||||
postCallback();
|
||||
}
|
||||
this.postSwapScroll(useHide, useSwap);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
@ -549,7 +549,7 @@ export class MessagesComponent implements OnInit, OnDestroy {
|
|||
this.eventList[this.eventList.length - 1],
|
||||
() => {},
|
||||
() => {
|
||||
this.initalized = true;
|
||||
this.showMore = true;
|
||||
},
|
||||
-1 === this.virtualScroller.viewPortInfo.endIndex ||
|
||||
!isInViewPortItems,
|
||||
|
|
Loading…
Reference in New Issue
Block a user