Merge branch 'feature/websocket' of https://bitbucket.org/equilibriumito/gabinete-digital into feature/websocket

This commit is contained in:
tiago.kayaya
2022-01-14 15:34:23 +01:00
-3
View File
@@ -236,11 +236,8 @@ export class WsChatService {
receiveLiveMessageFromRoom(roomId, funx: Function) {
const key = roomId + funx;
this.ws.registerCallback({
type:'Onmessage',
key: key,
funx:(message)=>{
if(message.msg =='changed' && message.collection == 'stream-room-messages') {
if(message.fields.args[0].rid == roomId) {