diff --git a/src/app/services/chat/ws-chat-methods.service.ts b/src/app/services/chat/ws-chat-methods.service.ts index a9d5b05b8..b45220338 100644 --- a/src/app/services/chat/ws-chat-methods.service.ts +++ b/src/app/services/chat/ws-chat-methods.service.ts @@ -76,13 +76,13 @@ export class WsChatMethodsService { subscribeToRoom() { for (const id in this.dm) { - this.WsChatService.subscribeNotifyRoom(id).then((subscription)=>{ + this.WsChatService.streamRoomMessages(id).then((subscription)=>{ // console.log('subscription', subscription) }) } for (const id in this.group) { - this.WsChatService.subscribeNotifyRoom(id).then((subscription)=>{ + this.WsChatService.streamRoomMessages(id).then((subscription)=>{ // console.log('subscription', subscription) }) } diff --git a/src/app/services/chat/ws-chat.service.ts b/src/app/services/chat/ws-chat.service.ts index bfcf3fa86..33e460866 100644 --- a/src/app/services/chat/ws-chat.service.ts +++ b/src/app/services/chat/ws-chat.service.ts @@ -236,6 +236,7 @@ export class WsChatService { } + /** * @param roomId * @param key