This commit is contained in:
병준 박 2019-11-11 18:09:55 +09:00
commit 20ce90e1fa

View File

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