|
@@ -4,6 +4,7 @@ import React, { useCallback, useRef, useState } from 'react';
|
4
|
4
|
import { useTranslation } from 'react-i18next';
|
5
|
5
|
import { useDispatch } from 'react-redux';
|
6
|
6
|
|
|
7
|
+import { isToolbarButtonEnabled } from '../../../base/config/functions.web';
|
7
|
8
|
import { openDialog } from '../../../base/dialog';
|
8
|
9
|
import {
|
9
|
10
|
getParticipantCountWithFake,
|
|
@@ -160,7 +161,7 @@ function _mapStateToProps(state): Object {
|
160
|
161
|
// and we will not re-render on change, but if count changes we will do
|
161
|
162
|
const participantsCount = getParticipantCountWithFake(state);
|
162
|
163
|
|
163
|
|
- const showInviteButton = shouldRenderInviteButton(state);
|
|
164
|
+ const showInviteButton = shouldRenderInviteButton(state) && isToolbarButtonEnabled('invite', state);
|
164
|
165
|
|
165
|
166
|
return {
|
166
|
167
|
sortedParticipantIds,
|