Deleting the focused post now sends user to normal channel view (#6890)

Этот коммит содержится в:
Joram Wilander
2017-07-10 14:51:31 -04:00
коммит произвёл Saturnino Abril
родитель f1cf1b5f7a
Коммит 1e7022ff6d
2 изменённых файлов: 21 добавлений и 1 удалений

Просмотреть файл

@@ -62,8 +62,20 @@ function loadingPosts(state = {}, action) {
}
}
function focusedPostId(state = '', action) {
switch (action.type) {
case ActionTypes.RECEIVED_FOCUSED_POST:
return action.data;
case ChannelTypes.SELECT_CHANNEL:
return '';
default:
return state;
}
}
export default combineReducers({
postVisibility,
lastChannelViewTime,
loadingPosts
loadingPosts,
focusedPostId
});