mirror of https://github.com/vector-im/riot-web
parent
93ce342d63
commit
78314ef284
|
@ -302,12 +302,6 @@ export default class RolesRoomSettingsTab extends React.Component {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
let unfederatableSection;
|
|
||||||
const createEvent = room.currentState.getStateEvents('m.room.create', '');
|
|
||||||
if (createEvent && createEvent.getContent()['m.federate'] === false) {
|
|
||||||
unfederatableSection = <div>{_t('This room is not accessible by remote Matrix servers')}</div>;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_SettingsTab mx_RolesRoomSettingsTab">
|
<div className="mx_SettingsTab mx_RolesRoomSettingsTab">
|
||||||
<div className="mx_SettingsTab_heading">{_t("Roles & Permissions")}</div>
|
<div className="mx_SettingsTab_heading">{_t("Roles & Permissions")}</div>
|
||||||
|
@ -318,7 +312,6 @@ export default class RolesRoomSettingsTab extends React.Component {
|
||||||
<span className='mx_SettingsTab_subheading'>{_t("Permissions")}</span>
|
<span className='mx_SettingsTab_subheading'>{_t("Permissions")}</span>
|
||||||
{powerSelectors}
|
{powerSelectors}
|
||||||
{eventPowerSelectors}
|
{eventPowerSelectors}
|
||||||
{unfederatableSection}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue