use feature flag when fetching thread bindings (#6018)
This commit is contained in:
parent
be74987614
commit
784b897d2f
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ import {makeGetPostIdsForThread} from '@mm-redux/selectors/entities/posts';
|
|||
import {getTheme, isCollapsedThreadsEnabled} from '@mm-redux/selectors/entities/preferences';
|
||||
import {getThread} from '@mm-redux/selectors/entities/threads';
|
||||
import {getThreadLastViewedAt} from '@selectors/threads';
|
||||
import {appsEnabled} from '@utils/apps';
|
||||
|
||||
import Thread from './thread';
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ function makeMapStateToProps() {
|
|||
theme: getTheme(state),
|
||||
thread,
|
||||
threadLoadingStatus: state.requests.posts.getPostThread,
|
||||
shouldFetchBindings: ownProps.channelId !== getCurrentChannelId(state),
|
||||
shouldFetchBindings: appsEnabled(state) && ownProps.channelId !== getCurrentChannelId(state),
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue