diff --git a/src/app/services/chat/room.service.ts b/src/app/services/chat/room.service.ts index c595ead01..5a1d6c6d2 100644 --- a/src/app/services/chat/room.service.ts +++ b/src/app/services/chat/room.service.ts @@ -36,7 +36,6 @@ export class RoomService { receiveMessage() { this.WsChatService.receiveLiveMessageFromRoom( this.id, - this.constructor.name+this.id, (Chatmessage) => { Chatmessage = this.fix_updatedAt(Chatmessage) diff --git a/src/app/services/chat/ws-chat.service.ts b/src/app/services/chat/ws-chat.service.ts index 48918ce1e..2149ebb8b 100644 --- a/src/app/services/chat/ws-chat.service.ts +++ b/src/app/services/chat/ws-chat.service.ts @@ -196,14 +196,13 @@ export class WsChatService { /** * @param roomId - * @param key * @param funx */ - receiveLiveMessageFromRoom(roomId =')(', key, funx: Function) { + receiveLiveMessageFromRoom(roomId, funx: Function) { this.ws.registerCallback({ type:'Onmessage', - requestId: key, + key: this.constructor.name+roomId, funx:(message)=>{ if(message.msg =='result') { if(message.result.msg) {