|
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
|
import type { Dispatch } from 'redux'; |
|
|
|
|
|
|
|
|
|
import { getFeatureFlag, INVITE_ENABLED } from '../../../../base/flags'; |
|
|
|
|
import { translate } from '../../../../base/i18n'; |
|
|
|
|
import { IconAddPeople } from '../../../../base/icons'; |
|
|
|
|
import { connect } from '../../../../base/redux'; |
|
|
|
@ -50,7 +51,8 @@ class InviteButton extends AbstractButton<Props, *> { |
|
|
|
|
* @returns {Object} |
|
|
|
|
*/ |
|
|
|
|
function _mapStateToProps(state: Object, ownProps: Object) { |
|
|
|
|
const addPeopleEnabled = isAddPeopleEnabled(state) || isDialOutEnabled(state); |
|
|
|
|
const addPeopleEnabled = getFeatureFlag(state, INVITE_ENABLED, true) |
|
|
|
|
&& (isAddPeopleEnabled(state) || isDialOutEnabled(state)); |
|
|
|
|
const { visible = Boolean(addPeopleEnabled) } = ownProps; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|