mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
remove console logs
This commit is contained in:
@@ -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) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user