From d021d679459c187a056b110236cb26d72bf76ad4 Mon Sep 17 00:00:00 2001 From: leejinho Date: Tue, 11 Feb 2020 16:04:33 +0900 Subject: [PATCH] =?UTF-8?q?bugfix=20::=20=EB=8B=A4=EB=A5=B8=EB=8C=80?= =?UTF-8?q?=ED=99=94=EB=B0=A9=20=EC=98=A4=ED=94=88=20=ED=9B=84=20=EC=97=AC?= =?UTF-8?q?=EA=B8=B0=EA=B9=8C=EC=A7=80=20=EC=9D=BD=EC=9D=8C=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=88=EB=8A=94=20=EB=8C=80=ED=99=94=EB=B0=A9=20=EC=9E=AC?= =?UTF-8?q?=EC=98=A4=ED=94=88=EC=8B=9C=20"=EC=97=AC=EA=B8=B0=EA=B9=8C?= =?UTF-8?q?=EC=A7=80=20=EC=9D=BD=EC=9D=8C"=20=EA=B0=9D=EC=B2=B4=EB=8A=94?= =?UTF-8?q?=20=EC=9E=88=EC=A7=80=EB=A7=8C=20=ED=8F=AC=EC=BB=A4=EC=8B=B1?= =?UTF-8?q?=EC=9D=B4=20=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/messages.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts index 05a4b789..2a0a7e85 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts @@ -175,6 +175,10 @@ export class MessagesComponent implements OnInit, OnDestroy { this.loginRes = loginRes; }); this.roomInfoSubscription = this.roomInfo$.subscribe(roomInfo => { + if (!this.roomInfo || this.roomInfo.roomSeq !== roomInfo.roomSeq) { + this.baseEventSeq = 0; + } + this.roomInfo = roomInfo; this.showMore = false; @@ -186,6 +190,7 @@ export class MessagesComponent implements OnInit, OnDestroy { // clear :: readToHearEvent object this.readToHereEvent = undefined; this.existReadToHereEvent = true; + this.firstCheckReadHere = true; /** [E] initializing by changed room */ if (!this.roomInfo || this.roomInfo.roomSeq !== roomInfo.roomSeq) {