From cb039a3ebdb63fc71d4118466e07496808661bbc Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 9 Feb 2022 17:06:56 +0100 Subject: [PATCH] improve --- src/app/services/chat/ws-chat-methods.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/services/chat/ws-chat-methods.service.ts b/src/app/services/chat/ws-chat-methods.service.ts index 7418057e8..8aa2b9ac0 100644 --- a/src/app/services/chat/ws-chat-methods.service.ts +++ b/src/app/services/chat/ws-chat-methods.service.ts @@ -66,6 +66,14 @@ export class WsChatMethodsService { type: 'reConnect', funx: ()=>{ this.subscribeToRoom() + + + if(this.getDmRoom(this.currentRoom)) { + this.getDmRoom(this.currentRoom).loadHistory({forceUpdate: true}) + } else if(this.getGroupRoom(this.currentRoom)) { + this.getGroupRoom(this.currentRoom).loadHistory({forceUpdate: true}) + } + } })