bugfix
This commit is contained in:
parent
68fae90bfc
commit
1a46307df7
|
@ -272,6 +272,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
if (
|
if (
|
||||||
!this.roomInfoSubject.value ||
|
!this.roomInfoSubject.value ||
|
||||||
(!!this.roomInfoSubject.value &&
|
(!!this.roomInfoSubject.value &&
|
||||||
|
!!roomInfo &&
|
||||||
this.roomInfoSubject.value.roomSeq !== roomInfo.roomSeq)
|
this.roomInfoSubject.value.roomSeq !== roomInfo.roomSeq)
|
||||||
) {
|
) {
|
||||||
this.clearView();
|
this.clearView();
|
||||||
|
|
|
@ -17,7 +17,14 @@ import {
|
||||||
messageUpdate,
|
messageUpdate,
|
||||||
messageUpdateFailure
|
messageUpdateFailure
|
||||||
} from './actions';
|
} from './actions';
|
||||||
import { tap, switchMap, map, catchError, exhaustMap } from 'rxjs/operators';
|
import {
|
||||||
|
tap,
|
||||||
|
switchMap,
|
||||||
|
map,
|
||||||
|
catchError,
|
||||||
|
exhaustMap,
|
||||||
|
delay
|
||||||
|
} from 'rxjs/operators';
|
||||||
import {
|
import {
|
||||||
StatusProtocolService,
|
StatusProtocolService,
|
||||||
SSVC_TYPE_STATUS_BULK_INFO_DATA,
|
SSVC_TYPE_STATUS_BULK_INFO_DATA,
|
||||||
|
@ -120,14 +127,20 @@ export class Effects {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
myStatusCheck$ = createEffect(() =>
|
myStatusCheck$ = createEffect(
|
||||||
|
() =>
|
||||||
this.actions$.pipe(
|
this.actions$.pipe(
|
||||||
ofType(AuthStore.loginSuccess),
|
ofType(AuthStore.loginSuccess),
|
||||||
map(action => action.loginRes),
|
map(action => action.loginRes),
|
||||||
map(loginRes => {
|
delay(5000),
|
||||||
return bulkInfo({ divCd: 'bulk', userSeqs: [loginRes.userSeq] });
|
tap(loginRes => {
|
||||||
|
this.store.dispatch(
|
||||||
|
bulkInfo({ divCd: 'mybulk', userSeqs: [loginRes.userSeq] })
|
||||||
|
);
|
||||||
|
// return bulkInfo({ divCd: 'bulk', userSeqs: [loginRes.userSeq] });
|
||||||
})
|
})
|
||||||
)
|
),
|
||||||
|
{ dispatch: false }
|
||||||
);
|
);
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|
|
@ -181,7 +181,11 @@ export class MessagesComponent implements OnInit, OnDestroy {
|
||||||
this.existReadToHereEvent = true;
|
this.existReadToHereEvent = true;
|
||||||
/** [E] initializing by changed room */
|
/** [E] initializing by changed room */
|
||||||
|
|
||||||
if (this.roomInfo.roomSeq !== roomInfo.roomSeq) {
|
if (
|
||||||
|
!!this.roomInfo &&
|
||||||
|
!!roomInfo &&
|
||||||
|
this.roomInfo.roomSeq !== roomInfo.roomSeq
|
||||||
|
) {
|
||||||
this.initEventMore();
|
this.initEventMore();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user