This commit is contained in:
tiago.kayaya
2022-01-14 12:03:33 +01:00
parent 44ea4187e3
commit af191cc42c
+5 -3
View File
@@ -39,7 +39,7 @@ export class RoomService {
}
receiveMessage() {
this.WsChatService.receiveMyMessageConfirmation(
/* this.WsChatService.receiveMyMessageConfirmation(
this.id,
(ChatMessage:ChatMessage) => {
@@ -47,10 +47,11 @@ export class RoomService {
const message = new MessageService()
message.setData(ChatMessage.result)
this.massages.push(message)
this.lastMessage.msg = message.msg;
this.calDateDuration(ChatMessage.result._updatedAt)
this.ToastService.presentToast('nova mensagem')
}
)
) */
this.WsChatService.receiveLiveMessageFromRoom(
this.id,
@@ -59,10 +60,11 @@ export class RoomService {
ChatMessage = this.fix_updatedAt(ChatMessage)
const message = new MessageService()
this.ToastService.presentToast('nova mensagem')
this.lastMessage.msg = message.msg;
message.setData(ChatMessage)
this.massages.push(message)
this.calDateDuration(ChatMessage.result._updatedAt)
}
)
}