From fa214fc01dd65ee1a9fdccb85d2612406f9660ff Mon Sep 17 00:00:00 2001 From: leejh Date: Thu, 31 Oct 2019 11:57:40 +0900 Subject: [PATCH] =?UTF-8?q?bugfix=20=ED=98=84=EC=9E=AC=20=EB=8C=80?= =?UTF-8?q?=ED=99=94=EB=B0=A9=EC=9D=B4=20=EC=97=B4=EB=A0=A4=20=EC=9E=88?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=95=98=EC=9D=84=EB=95=8C=20readNotifica?= =?UTF-8?q?tion=20=EC=9D=B4=20=EC=9C=A0=EC=9E=85=EB=90=98=EC=97=88?= =?UTF-8?q?=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20state.roomInfo.roomSeq=20?= =?UTF-8?q?=EA=B0=80=20null=20exception=20=EB=90=98=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/store/messenger/event/effects.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts index e2455f2f..a98800ea 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts @@ -179,7 +179,11 @@ export class Effects { // map(([action, roomInfo]) => ([action.noti, roomInfo])), tap(([action, roomInfo, loginRes]) => { // 현재 오픈된 방에 대한 read noti/res 가 유입될 경우 roomUserList 의 lastReadSeq 를 갱신한다. - if (roomInfo.roomSeq === action.roomSeq) { + if ( + !!roomInfo && + !!roomInfo.roomSeq && + roomInfo.roomSeq === action.roomSeq + ) { this.store.dispatch(RoomStore.updateRoomUserLastReadSeq(action)); }