diff options
Diffstat (limited to 'webapp/reducers/views')
-rw-r--r-- | webapp/reducers/views/channel.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/webapp/reducers/views/channel.js b/webapp/reducers/views/channel.js index 0deb2389e..1da6c2e29 100644 --- a/webapp/reducers/views/channel.js +++ b/webapp/reducers/views/channel.js @@ -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 }); |