diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts index d273c4c5..7dbe4bfe 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts @@ -58,13 +58,6 @@ import { export class Effects { retrieveMessage$ = createEffect( () => { - // const loginResInfo: LoginResponse = this.sessionStorageService.get< - // LoginResponse - // >(KEY_LOGIN_RES_INFO); - const environmentsInfo = this.sessionStorageService.get( - KEY_ENVIRONMENTS_INFO - ); - return this.actions$.pipe( ofType(retrieveMessage), withLatestFrom( @@ -76,6 +69,13 @@ export class Effects { ) ), switchMap(([req, loginResInfo]) => { + // const loginResInfo: LoginResponse = this.sessionStorageService.get< + // LoginResponse + // >(KEY_LOGIN_RES_INFO); + const environmentsInfo = this.sessionStorageService.get< + EnvironmentsInfo + >(KEY_ENVIRONMENTS_INFO); + const request: RetrieveRequest = { userSeq: loginResInfo.userSeq, deviceType: environmentsInfo.deviceType,