From 74026e743c1834a3b6fb8f2603ce788de3e3b174 Mon Sep 17 00:00:00 2001 From: hmuresan Date: Tue, 31 Aug 2021 11:24:47 +0300 Subject: [PATCH] fix(toolbar-buttons) Hide/show invite button based on toolbarButtons --- .../participants-pane/components/web/MeetingParticipantList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/react/features/participants-pane/components/web/MeetingParticipantList.js b/react/features/participants-pane/components/web/MeetingParticipantList.js index 820a05faa..274e5e3c5 100644 --- a/react/features/participants-pane/components/web/MeetingParticipantList.js +++ b/react/features/participants-pane/components/web/MeetingParticipantList.js @@ -4,6 +4,7 @@ import React, { useCallback, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch } from 'react-redux'; +import { isToolbarButtonEnabled } from '../../../base/config/functions.web'; import { openDialog } from '../../../base/dialog'; import { getParticipantCountWithFake, @@ -160,7 +161,7 @@ function _mapStateToProps(state): Object { // and we will not re-render on change, but if count changes we will do const participantsCount = getParticipantCountWithFake(state); - const showInviteButton = shouldRenderInviteButton(state); + const showInviteButton = shouldRenderInviteButton(state) && isToolbarButtonEnabled('invite', state); return { sortedParticipantIds,