현재 대화방이 열려 있지 않았을때 readNotification 이 유입되었을 경우 state.roomInfo.roomSeq 가 null exception 되는 문제 수정.
This commit is contained in:
leejh 2019-10-31 11:57:40 +09:00
parent 069d39aa8f
commit fa214fc01d

View File

@ -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));
}