mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
merge
This commit is contained in:
@@ -39,18 +39,6 @@ export class RoomService {
|
||||
}
|
||||
|
||||
receiveMessage() {
|
||||
this.WsChatService.receiveMyMessageConfirmation(
|
||||
this.id,
|
||||
(ChatMessage:ChatMessage) => {
|
||||
|
||||
ChatMessage = this.fix_updatedAt(ChatMessage)
|
||||
const message = new MessageService()
|
||||
message.setData(ChatMessage.result)
|
||||
// this.massages.push(message)
|
||||
this.calDateDuration(ChatMessage.result._updatedAt)
|
||||
//this.ToastService.presentToast('nova mensagem')
|
||||
}
|
||||
)
|
||||
|
||||
this.WsChatService.receiveLiveMessageFromRoom(
|
||||
this.id,
|
||||
@@ -62,7 +50,6 @@ export class RoomService {
|
||||
const message = new MessageService()
|
||||
message.setData(ChatMessage)
|
||||
this.lastMessage.msg = message.msg
|
||||
console.log('ChatMessage.result._updatedAt', ChatMessage._updatedAt)
|
||||
this.calDateDuration(ChatMessage._updatedAt)
|
||||
this.massages.push(message)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ export class WsChatMethodsService {
|
||||
constructor(
|
||||
private WsChatService: WsChatService
|
||||
) {
|
||||
|
||||
(async()=>{
|
||||
await this.getAllRooms();
|
||||
this.subscribeToRoom()
|
||||
|
||||
Reference in New Issue
Block a user