From 454973ecbddd057a38243f4e51721b326ea0d36a Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Thu, 30 Apr 2020 08:57:12 -0700 Subject: [PATCH] Revert "Disable loadUnreadChannelPosts (#4245)" (#4251) This reverts commit 8de77754ef398488db22d31e6027bea058f4ea6f. --- app/actions/views/channel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/actions/views/channel.js b/app/actions/views/channel.js index 96a6069ab..5c22c74b0 100644 --- a/app/actions/views/channel.js +++ b/app/actions/views/channel.js @@ -30,7 +30,7 @@ import {getChannelByName as selectChannelByName} from '@mm-redux/utils/channel_u import EventEmitter from '@mm-redux/utils/event_emitter'; import {loadSidebarDirectMessagesProfiles} from '@actions/helpers/channels'; -import {getPosts, getPostsBefore, getPostsSince, getPostThread} from '@actions/views/post'; +import {getPosts, getPostsBefore, getPostsSince, getPostThread, loadUnreadChannelPosts} from '@actions/views/post'; import {INSERT_TO_COMMENT, INSERT_TO_DRAFT} from '@constants/post_textbox'; import {getChannelReachable} from '@selectors/channel'; import telemetry from '@telemetry'; @@ -654,8 +654,7 @@ export function loadChannelsForTeam(teamId, skipDispatch = false) { // Fetch needed profiles from channel creators and direct channels dispatch(loadSidebar(data)); - // Uncomment once we want to enable this feature - // dispatch(loadUnreadChannelPosts(data.channels, data.channelMembers)); + dispatch(loadUnreadChannelPosts(data.channels, data.channelMembers)); } }