Deleting the focused post now sends user to normal channel view (#6890)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
f1cf1b5f7a
Коммит
1e7022ff6d
@@ -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
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user