Remove the Screen sharing is here!
dialog (#7266)
This commit is contained in:
parent
f40291d408
commit
d3c556bef7
2 changed files with 1 additions and 14 deletions
|
@ -28,8 +28,6 @@ import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
||||||
import RoomTopic from "../elements/RoomTopic";
|
import RoomTopic from "../elements/RoomTopic";
|
||||||
import RoomName from "../elements/RoomName";
|
import RoomName from "../elements/RoomName";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
import Modal from '../../../Modal';
|
|
||||||
import InfoDialog from "../dialogs/InfoDialog";
|
|
||||||
import { throttle } from 'lodash';
|
import { throttle } from 'lodash';
|
||||||
import { MatrixEvent, Room, RoomState } from 'matrix-js-sdk/src';
|
import { MatrixEvent, Room, RoomState } from 'matrix-js-sdk/src';
|
||||||
import { E2EStatus } from '../../../utils/ShieldUtils';
|
import { E2EStatus } from '../../../utils/ShieldUtils';
|
||||||
|
@ -113,14 +111,6 @@ export default class RoomHeader extends React.Component<IProps, IState> {
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
}, 500, { leading: true, trailing: true });
|
}, 500, { leading: true, trailing: true });
|
||||||
|
|
||||||
private displayInfoDialogAboutScreensharing() {
|
|
||||||
Modal.createDialog(InfoDialog, {
|
|
||||||
title: _t("Screen sharing is here!"),
|
|
||||||
description: _t("You can now share your screen by pressing the \"screen share\" " +
|
|
||||||
"button during a call. You can even do this in audio calls if both sides support it!"),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private onContextMenuOpenClick = (ev: React.MouseEvent) => {
|
private onContextMenuOpenClick = (ev: React.MouseEvent) => {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
@ -219,8 +209,7 @@ export default class RoomHeader extends React.Component<IProps, IState> {
|
||||||
/>;
|
/>;
|
||||||
const videoCallButton = <AccessibleTooltipButton
|
const videoCallButton = <AccessibleTooltipButton
|
||||||
className="mx_RoomHeader_button mx_RoomHeader_videoCallButton"
|
className="mx_RoomHeader_button mx_RoomHeader_videoCallButton"
|
||||||
onClick={(ev: React.MouseEvent<Element>) => ev.shiftKey ?
|
onClick={() => this.props.onCallPlaced(CallType.Video)}
|
||||||
this.displayInfoDialogAboutScreensharing() : this.props.onCallPlaced(CallType.Video)}
|
|
||||||
title={_t("Video call")}
|
title={_t("Video call")}
|
||||||
key="video"
|
key="video"
|
||||||
/>;
|
/>;
|
||||||
|
|
|
@ -1704,8 +1704,6 @@
|
||||||
"Unnamed room": "Unnamed room",
|
"Unnamed room": "Unnamed room",
|
||||||
"World readable": "World readable",
|
"World readable": "World readable",
|
||||||
"Guests can join": "Guests can join",
|
"Guests can join": "Guests can join",
|
||||||
"Screen sharing is here!": "Screen sharing is here!",
|
|
||||||
"You can now share your screen by pressing the \"screen share\" button during a call. You can even do this in audio calls if both sides support it!": "You can now share your screen by pressing the \"screen share\" button during a call. You can even do this in audio calls if both sides support it!",
|
|
||||||
"(~%(count)s results)|other": "(~%(count)s results)",
|
"(~%(count)s results)|other": "(~%(count)s results)",
|
||||||
"(~%(count)s results)|one": "(~%(count)s result)",
|
"(~%(count)s results)|one": "(~%(count)s result)",
|
||||||
"Join Room": "Join Room",
|
"Join Room": "Join Room",
|
||||||
|
|
Loading…
Reference in a new issue