bugfix :: 방을 열고 > 닫았을 경우 unreadcount 쌓이지 않는 문제 수정.

This commit is contained in:
leejinho 2019-11-11 16:23:06 +09:00
parent bed06e0f71
commit 0615a7bde0

View File

@ -8,6 +8,7 @@ import {
} from './actions';
import * as AuthenticationStore from '@app/store/account/authentication';
import * as ChatStore from '@app/store/messenger/chat';
import { UserInfo } from '@ucap-webmessenger/protocol-room';
export const reducer = createReducer(
@ -67,5 +68,10 @@ export const reducer = createReducer(
return {
...initialState
};
}),
on(ChatStore.clearSelectedRoom, (state, action) => {
return {
...initialState
};
})
);