Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat: Hide Invite more when invite button is disabled.

damencho66505666df22
diff --git a/react/features/conference/components/web/InviteMore.js b/react/features/conference/components/web/InviteMore.js
index 2aa9d08a1a..f25fcbdbf2 100644
--- a/react/features/conference/components/web/InviteMore.js
+++ b/react/features/conference/components/web/InviteMore.js
@@ -7,7 +7,10 @@ import { Icon, IconInviteMore } from '../../../base/icons';
import { getParticipantCount } from '../../../base/participants';
import { connect } from '../../../base/redux';
import { beginAddPeople } from '../../../invite';
-import { isToolboxVisible } from '../../../toolbox';
+import {
+ isButtonEnabled,
+ isToolboxVisible
+} from '../../../toolbox';
declare var interfaceConfig: Object;
@@ -81,7 +84,7 @@ function mapStateToProps(state) {
return {
_tileViewEnabled: state['features/video-layout'].tileViewEnabled,
- _visible: isToolboxVisible(state) && isAlone && !hide
+ _visible: isToolboxVisible(state) && isButtonEnabled('invite') && isAlone && !hide
};
}