add-privileged-users-in-room (#9596)

This commit is contained in:
Marco Bartelt 2022-12-08 12:40:31 +01:00 committed by GitHub
parent 982c83d2a8
commit 95ac957fa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 927 additions and 3 deletions

View file

@ -33,6 +33,7 @@ import SettingsStore from "../../../../../settings/SettingsStore";
import { VoiceBroadcastInfoEventType } from '../../../../../voice-broadcast';
import { ElementCall } from "../../../../../models/Call";
import SdkConfig, { DEFAULTS } from "../../../../../SdkConfig";
import { AddPrivilegedUsers } from "../../AddPrivilegedUsers";
interface IEventShowOpts {
isState?: boolean;
@ -470,6 +471,11 @@ export default class RolesRoomSettingsTab extends React.Component<IProps> {
<div className="mx_SettingsTab mx_RolesRoomSettingsTab">
<div className="mx_SettingsTab_heading">{ _t("Roles & Permissions") }</div>
{ privilegedUsersSection }
{
(canChangeLevels && room !== null) && (
<AddPrivilegedUsers room={room} defaultUserLevel={defaultUserLevel} />
)
}
{ mutedUsersSection }
{ bannedUsersSection }
<SettingsFieldset