Call view accessibility fixes (#7439)

This commit is contained in:
Michael Telatynski 2022-01-04 08:57:46 +00:00 committed by GitHub
parent cdbe59900c
commit 44d7d74949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 28 deletions

View file

@ -68,10 +68,6 @@ interface IState {
vidMuted: boolean;
screensharing: boolean;
callState: CallState;
controlsVisible: boolean;
hoveringControls: boolean;
showMoreMenu: boolean;
showDialpad: boolean;
primaryFeed: CallFeed;
secondaryFeeds: Array<CallFeed>;
sidebarShown: boolean;
@ -123,10 +119,6 @@ export default class CallView extends React.Component<IProps, IState> {
vidMuted: this.props.call.isLocalVideoMuted(),
screensharing: this.props.call.isScreensharing(),
callState: this.props.call.state,
controlsVisible: true,
hoveringControls: false,
showMoreMenu: false,
showDialpad: false,
primaryFeed: primary,
secondaryFeeds: secondary,
sidebarShown: true,
@ -573,10 +565,6 @@ export default class CallView extends React.Component<IProps, IState> {
let toast;
if (someoneIsScreensharing) {
const presentingClasses = classNames({
mx_CallView_presenting: true,
mx_CallView_presenting_hidden: !this.state.controlsVisible,
});
const sharerName = this.state.primaryFeed.getMember().name;
let text = isScreensharing
? _t("You are presenting")
@ -588,7 +576,7 @@ export default class CallView extends React.Component<IProps, IState> {
}
toast = (
<div className={presentingClasses}>
<div className="mx_CallView_presenting">
{ text }
</div>
);