bugfix
현재 대화방이 열려 있지 않았을때 readNotification 이 유입되었을 경우 state.roomInfo.roomSeq 가 null exception 되는 문제 수정.
This commit is contained in:
parent
069d39aa8f
commit
fa214fc01d
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user