diff --git a/src/app/services/chat/ws-chat.service.ts b/src/app/services/chat/ws-chat.service.ts index d42a923ab..0ff4e8379 100644 --- a/src/app/services/chat/ws-chat.service.ts +++ b/src/app/services/chat/ws-chat.service.ts @@ -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) {