This commit is contained in:
tiago.kayaya
2021-07-26 09:44:11 +01:00
parent 6a0e65393b
commit 03d52e0918
8 changed files with 82 additions and 78 deletions
@@ -45,15 +45,14 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
/* this.dm = this.navParams.get('dm'); */
}
ngOnChanges(changes: SimpleChanges): void {
console.log(this.roomId);
this.load();
//this.load();
//throw new Error('Method not implemented.');
}
ngOnInit() {
//this.scrollToBottom();
this.scrollToBottom();
/* setInterval(()=>{ */
this.load();
@@ -79,20 +78,17 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
}
ngAfterViewChecked() {
//this.scrollToBottom();
console.log(this.roomId);
this.scrollToBottom();
}
/* scrollToBottom(): void {
const loader = this.toastService.loading()
scrollToBottom(): void {
try {
this.myScrollContainer.nativeElement.scrollTop = this.myScrollContainer.nativeElement.scrollHeight;
} catch(err) { }
finally {
loader.remove()
}
}
} */
loadMoreMessages(ev:any){
}