diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts index 6c72eca8..0b78043e 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts @@ -181,7 +181,16 @@ export const reducer = createReducer( on(RoomStore.exitSuccess, (state, action) => { return { ...state, - room: adapterRoom.removeOne(action.res.roomSeq, { ...state.room }) + room: adapterRoom.removeOne(action.res.roomSeq, { ...state.room }), + roomUser: adapterRoomUser.removeOne(action.res.roomSeq, { + ...state.roomUser + }), + roomUserShort: adapterRoomUserShort.removeOne(action.res.roomSeq, { + ...state.roomUserShort + }), + chatUnreadCount: + state.chatUnreadCount - + state.room.entities[action.res.roomSeq].noReadCnt }; }),