bugfix :: 다른대화방 오픈 후 여기까지 읽음이 있는 대화방 재오픈시 "여기까지 읽음" 객체는 있지만 포커싱이 되지 않는 문제 수정.

This commit is contained in:
leejinho 2020-02-11 16:04:33 +09:00
parent 88f88451d2
commit d021d67945

View File

@ -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) {