diff --git a/src/app/services/chat/room.service.ts b/src/app/services/chat/room.service.ts index 6ed13e20e..a4cc1e8f3 100644 --- a/src/app/services/chat/room.service.ts +++ b/src/app/services/chat/room.service.ts @@ -114,7 +114,10 @@ export class RoomService { } this.addMessageDB(ChatMessage) - this.scrollDown() + + setTimeout(()=>{ + this.scrollDown() + }, 50) } ) diff --git a/src/app/services/chat/ws-chat.service.ts b/src/app/services/chat/ws-chat.service.ts index c50d480f0..ddf514cf1 100644 --- a/src/app/services/chat/ws-chat.service.ts +++ b/src/app/services/chat/ws-chat.service.ts @@ -678,8 +678,6 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) { } else { let messageStr = JSON.stringify(message) - console.log('send', messageStr) - this.socket.send(messageStr) } return requestId @@ -688,8 +686,6 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) { onmessage: async (event: any)=> { const data = JSON.parse(event.data) - console.log('onmessage', data) - for (const [key, value] of Object.entries(this.wsCallbacks)) { if(value.type== 'Onmessage') { const dontRepeat = await value.funx(data) diff --git a/src/environments/environment.ts b/src/environments/environment.ts index cd809f519..6bf93dabc 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -13,7 +13,7 @@ export const environment = { domain: 'gabinetedigital.local', //gabinetedigital.local defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local defaultuserpwd: 'tabteste@006', //tabteste@006, - chatOffline: true + chatOffline: false }; /*