You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
@@ -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}) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user