Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2019-10-17 19:18:14 +01:00
parent 93429d7c2e
commit 7e4d429fa3
1 changed files with 103 additions and 99 deletions

View File

@ -532,7 +532,8 @@ const BanToggleButton = withLegacyMatrixClient(({matrixClient: cli, member, star
</AccessibleButton>; </AccessibleButton>;
}); });
const MuteToggleButton = withLegacyMatrixClient(({matrixClient: cli, member, room, powerLevels, startUpdating, stopUpdating}) => { const MuteToggleButton = withLegacyMatrixClient(
({matrixClient: cli, member, room, powerLevels, startUpdating, stopUpdating}) => {
const isMuted = _isMuted(member, powerLevels); const isMuted = _isMuted(member, powerLevels);
const onMuteToggle = async () => { const onMuteToggle = async () => {
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
@ -587,9 +588,11 @@ const MuteToggleButton = withLegacyMatrixClient(({matrixClient: cli, member, roo
return <AccessibleButton className="mx_UserInfo_field" onClick={onMuteToggle}> return <AccessibleButton className="mx_UserInfo_field" onClick={onMuteToggle}>
{ muteLabel } { muteLabel }
</AccessibleButton>; </AccessibleButton>;
}); },
);
const RoomAdminToolsContainer = withLegacyMatrixClient(({matrixClient: cli, room, children, member, startUpdating, stopUpdating}) => { const RoomAdminToolsContainer = withLegacyMatrixClient(
({matrixClient: cli, room, children, member, startUpdating, stopUpdating}) => {
let kickButton; let kickButton;
let banButton; let banButton;
let muteButton; let muteButton;
@ -639,7 +642,8 @@ const RoomAdminToolsContainer = withLegacyMatrixClient(({matrixClient: cli, room
} }
return <div />; return <div />;
}); },
);
const GroupAdminToolsSection = withLegacyMatrixClient( const GroupAdminToolsSection = withLegacyMatrixClient(
({matrixClient: cli, children, groupId, groupMember, startUpdating, stopUpdating}) => { ({matrixClient: cli, children, groupId, groupMember, startUpdating, stopUpdating}) => {