also remove end meeting from settings dropdown if direct leave button is enabled

This commit is contained in:
Jan Kessler 2023-11-28 17:58:07 +01:00
parent f19aac1895
commit 2ac1e7cb97

View File

@ -355,7 +355,7 @@ class SettingsDropdown extends PureComponent {
);
}
if (allowedToEndMeeting && isMeteorConnected) {
if (allowedToEndMeeting && isMeteorConnected && !isDirectLeaveButtonEnabled) {
const customStyles = { background: colorDanger, color: colorWhite };
this.menuItems.push(