From c4b6abe094e3f210214d0ff61487a368b3632919 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Fri, 14 Jan 2022 10:53:05 +0100 Subject: [PATCH] change method to streamRoomMessages --- src/app/services/chat/ws-chat-methods.service.ts | 4 ++-- src/app/services/chat/ws-chat.service.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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