Revert "Disable loadUnreadChannelPosts (#4245)" (#4252)

This reverts commit 8de77754ef.

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
This commit is contained in:
Mattermost Build 2020-04-30 18:16:32 +02:00 committed by GitHub
parent ae5cdb56a3
commit 6cdb50ed39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}
}