bugfix
This commit is contained in:
parent
986ff4e928
commit
a2f58613ff
|
@ -175,10 +175,6 @@ 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;
|
||||
|
||||
|
@ -193,7 +189,11 @@ export class MessagesComponent implements OnInit, OnDestroy {
|
|||
this.firstCheckReadHere = true;
|
||||
/** [E] initializing by changed room */
|
||||
|
||||
if (!this.roomInfo || this.roomInfo.roomSeq !== roomInfo.roomSeq) {
|
||||
if (
|
||||
!this.roomInfo ||
|
||||
(!!this.roomInfo && this.roomInfo.roomSeq !== roomInfo.roomSeq)
|
||||
) {
|
||||
this.baseEventSeq = 0;
|
||||
this.initEventMore();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user