This commit is contained in:
Peter Maquiran
2022-01-29 19:21:46 +01:00
parent bf0dbf8baf
commit ed77e1aea7
14 changed files with 402 additions and 19 deletions
+3 -11
View File
@@ -100,21 +100,13 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
}
ngOnChanges(changes: SimpleChanges): void {
this.wsChatMethodsService.getDmRoom(this.roomId).loadHistory()
//this.wsChatMethodsService.getDmRoom(this.roomId).getMsgFromDB()
this.wsChatMethodsService.getDmRoom(this.roomId).scrollDown = this.scrollToBottomClicked
/* console.log('DATATATA', this.wsChatMethodsService.getDmRoom(this.roomId).massages)
this.wsChatMethodsService.getDmRoom(this.roomId).massages.forEach((element) => {
console.log('DATATATA 11', element)
}) */
//this.transformData(this.wsChatMethodsService.getDmRoom(this.roomId).massages)
//this.getMessageDB()
this.wsChatMethodsService.openRoom(this.roomId)
setTimeout(() => {
this.scrollToBottomClicked()
}, 50)
}, 150)
}