remove console logs

This commit is contained in:
Peter Maquiran
2024-10-25 12:23:58 +01:00
parent 41dfb448dd
commit 53497407df
8 changed files with 98 additions and 86 deletions
@@ -214,8 +214,11 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
setTimeout(() => {
this.getMessages()
}, 500)
} else {
this.listenToMessageLoadHistory()
}
setTimeout(() => {
this.subscribeToChanges()
}, 500)
@@ -352,14 +355,14 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.sendReadMessage()
}, 1000)
if(this.room.$id) {
this.onReconnectGetMessages()
if(this.room.id) {
this.listenToMessageLoadHistory()
}
}
}
onReconnectGetMessages() {
listenToMessageLoadHistory() {
this.messageOnReconnectSubject?.unsubscribe()
this.messageOnReconnectSubject = this.chatServiceService.listenToMessageLoadHistory({roomId: this.room.id}).subscribe((messages) => {