로그인 후 내 프레즌스 표시를 위한 프로토콜 처리.
This commit is contained in:
parent
9e8c15df82
commit
eaadd72e89
|
@ -120,6 +120,16 @@ export class Effects {
|
|||
)
|
||||
);
|
||||
|
||||
myStatusCheck$ = createEffect(() =>
|
||||
this.actions$.pipe(
|
||||
ofType(AuthStore.loginSuccess),
|
||||
map(action => action.loginRes),
|
||||
map(loginRes => {
|
||||
return bulkInfo({ divCd: 'bulk', userSeqs: [loginRes.userSeq] });
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
constructor(
|
||||
private actions$: Actions,
|
||||
private store: Store<any>,
|
||||
|
|
|
@ -9,6 +9,7 @@ import {
|
|||
|
||||
import * as AuthenticationStore from '@app/store/account/authentication';
|
||||
import { StatusBulkInfo } from '@ucap-webmessenger/protocol-status';
|
||||
import { StatusCode } from '@ucap-webmessenger/core';
|
||||
|
||||
export const reducer = createReducer(
|
||||
initialState,
|
||||
|
@ -68,6 +69,22 @@ export const reducer = createReducer(
|
|||
} as State;
|
||||
}),
|
||||
|
||||
on(AuthenticationStore.loginSuccess, (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
myStatus: {
|
||||
userSeq: action.loginRes.userSeq,
|
||||
pcStatus: StatusCode.OnLine,
|
||||
phoneStatus: StatusCode.Offline,
|
||||
mobileStatus: StatusCode.Offline,
|
||||
conferenceStatus: StatusCode.Offline,
|
||||
statusMessage: '',
|
||||
mobileConferenceStatus: StatusCode.Offline,
|
||||
imessengerStatus: StatusCode.Offline
|
||||
}
|
||||
};
|
||||
}),
|
||||
|
||||
on(changeMyIdleCheckTime, (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
|
|
Loading…
Reference in New Issue
Block a user