# 이슈처리
124 6개 메시지 발신 시 '여기까지 읽었습니다.' 보여짐 :: 버그 수정.
This commit is contained in:
parent
4f8695e5a3
commit
7171f8b0e0
|
@ -239,6 +239,7 @@
|
||||||
[minShowReadHere]="
|
[minShowReadHere]="
|
||||||
environment.productConfig.CommonSetting.readHereShowMinimumEventCount
|
environment.productConfig.CommonSetting.readHereShowMinimumEventCount
|
||||||
"
|
"
|
||||||
|
[initRoomLastEventSeq]="initRoomLastEventSeq"
|
||||||
[translationSimpleview]="translationSimpleview"
|
[translationSimpleview]="translationSimpleview"
|
||||||
(moreEvent)="onMoreEvent($event)"
|
(moreEvent)="onMoreEvent($event)"
|
||||||
(massDetail)="onMassDetail($event)"
|
(massDetail)="onMassDetail($event)"
|
||||||
|
|
|
@ -192,6 +192,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
/** About ReadHere */
|
/** About ReadHere */
|
||||||
firstcheckReadHere = true;
|
firstcheckReadHere = true;
|
||||||
clearReadHere = false;
|
clearReadHere = false;
|
||||||
|
initRoomLastEventSeq: number;
|
||||||
|
|
||||||
snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>;
|
snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>;
|
||||||
|
|
||||||
|
@ -358,7 +359,16 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
this.eventInfoStatusSubscription = this.store
|
this.eventInfoStatusSubscription = this.store
|
||||||
.pipe(
|
.pipe(
|
||||||
select(AppStore.MessengerSelector.EventSelector.infoStatus),
|
select(AppStore.MessengerSelector.EventSelector.infoStatus),
|
||||||
tap(res => (this.eventInfoStatus = res))
|
tap(res => {
|
||||||
|
this.eventInfoStatus = res;
|
||||||
|
|
||||||
|
if (!!res) {
|
||||||
|
const elist = this.eventList;
|
||||||
|
if (res.baseSeq === 0 && elist.length > 0) {
|
||||||
|
this.initRoomLastEventSeq = elist[elist.length - 1].seq;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ export class MessagesComponent implements OnInit {
|
||||||
set eventList(elist: Info<EventJson>[]) {
|
set eventList(elist: Info<EventJson>[]) {
|
||||||
if (!!elist && elist.length > 0) {
|
if (!!elist && elist.length > 0) {
|
||||||
this.firstEventSeq = elist[0].seq;
|
this.firstEventSeq = elist[0].seq;
|
||||||
this.lastEventSeq = elist[elist.length - 1].seq;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.messages = elist;
|
this.messages = elist;
|
||||||
|
@ -52,6 +51,8 @@ export class MessagesComponent implements OnInit {
|
||||||
@Input()
|
@Input()
|
||||||
minShowReadHere = 10;
|
minShowReadHere = 10;
|
||||||
@Input()
|
@Input()
|
||||||
|
initRoomLastEventSeq: number;
|
||||||
|
@Input()
|
||||||
translationSimpleview = false;
|
translationSimpleview = false;
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
|
@ -86,7 +87,6 @@ export class MessagesComponent implements OnInit {
|
||||||
moment = moment;
|
moment = moment;
|
||||||
|
|
||||||
firstEventSeq = 0;
|
firstEventSeq = 0;
|
||||||
lastEventSeq = 0;
|
|
||||||
existReadHere = false;
|
existReadHere = false;
|
||||||
|
|
||||||
constructor(private logger: NGXLogger, private datePipe: DatePipe) {}
|
constructor(private logger: NGXLogger, private datePipe: DatePipe) {}
|
||||||
|
@ -186,7 +186,8 @@ export class MessagesComponent implements OnInit {
|
||||||
if (
|
if (
|
||||||
!!this.roomInfo &&
|
!!this.roomInfo &&
|
||||||
!!this.roomInfo.lastReadEventSeq &&
|
!!this.roomInfo.lastReadEventSeq &&
|
||||||
this.lastEventSeq - this.roomInfo.lastReadEventSeq > 5
|
this.initRoomLastEventSeq - this.roomInfo.lastReadEventSeq >
|
||||||
|
this.minShowReadHere
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
this.roomInfo.roomType === RoomType.Single ||
|
this.roomInfo.roomType === RoomType.Single ||
|
||||||
|
|
Loading…
Reference in New Issue
Block a user