diff --git a/src/components/views/rooms/RoomHeader.tsx b/src/components/views/rooms/RoomHeader.tsx index 4dc1bb8b82f..69b91f02b05 100644 --- a/src/components/views/rooms/RoomHeader.tsx +++ b/src/components/views/rooms/RoomHeader.tsx @@ -28,8 +28,6 @@ import AccessibleTooltipButton from "../elements/AccessibleTooltipButton"; import RoomTopic from "../elements/RoomTopic"; import RoomName from "../elements/RoomName"; import { replaceableComponent } from "../../../utils/replaceableComponent"; -import Modal from '../../../Modal'; -import InfoDialog from "../dialogs/InfoDialog"; import { throttle } from 'lodash'; import { MatrixEvent, Room, RoomState } from 'matrix-js-sdk/src'; import { E2EStatus } from '../../../utils/ShieldUtils'; @@ -113,14 +111,6 @@ export default class RoomHeader extends React.Component { this.forceUpdate(); }, 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) => { ev.preventDefault(); ev.stopPropagation(); @@ -219,8 +209,7 @@ export default class RoomHeader extends React.Component { />; const videoCallButton = ) => ev.shiftKey ? - this.displayInfoDialogAboutScreensharing() : this.props.onCallPlaced(CallType.Video)} + onClick={() => this.props.onCallPlaced(CallType.Video)} title={_t("Video call")} key="video" />; diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 547818bf87d..0ffb92f549a 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1704,8 +1704,6 @@ "Unnamed room": "Unnamed room", "World readable": "World readable", "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)|one": "(~%(count)s result)", "Join Room": "Join Room",