add private atribuite

This commit is contained in:
Peter Maquiran
2022-01-13 10:26:40 +01:00
parent 9bb9516491
commit 8386781f77
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export class RoomService {
private hasLoadHistory = false private hasLoadHistory = false
duration = '' duration = ''
ToastService = ToastsService private ToastService = ToastsService
constructor( constructor(
public WsChatService: WsChatService, public WsChatService: WsChatService,
@@ -133,7 +133,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
ev.target.complete(); ev.target.complete();
} }
scrollToBottom(): void { scrollToBottom = () => {
try { try {
if(this.scrollingOnce){ if(this.scrollingOnce){
this.myScrollContainer.nativeElement.scrollTop = this.myScrollContainer.nativeElement.scrollHeight; this.myScrollContainer.nativeElement.scrollTop = this.myScrollContainer.nativeElement.scrollHeight;