fix(prejoin) Hide conference name based on config

This commit is contained in:
Horatiu Muresan 2022-09-12 09:43:35 +03:00 committed by Horatiu Muresan
parent 6e1e6df952
commit 43bea201e6
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ class PreMeetingScreen extends PureComponent<Props> {
* @returns {Object}
*/
function mapStateToProps(state, ownProps): Object {
const { hiddenPremeetingButtons } = state['features/base/config'];
const { hiddenPremeetingButtons, hideConferenceSubject } = state['features/base/config'];
const toolbarButtons = getToolbarButtons(state);
const premeetingButtons = (ownProps.thirdParty
? THIRD_PARTY_PREJOIN_BUTTONS
@ -208,7 +208,7 @@ function mapStateToProps(state, ownProps): Object {
? premeetingButtons
: premeetingButtons.filter(b => isToolbarButtonEnabled(b, toolbarButtons)),
_premeetingBackground: premeetingBackground,
_roomName: getConferenceName(state)
_roomName: hideConferenceSubject ? undefined : getConferenceName(state)
};
}