From d3c556bef70f1a56fa0cc482fff585008482ef32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 2 Dec 2021 16:36:36 +0100 Subject: [PATCH] Remove the `Screen sharing is here!` dialog (#7266) --- src/components/views/rooms/RoomHeader.tsx | 13 +------------ src/i18n/strings/en_EN.json | 2 -- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/components/views/rooms/RoomHeader.tsx b/src/components/views/rooms/RoomHeader.tsx index 4dc1bb8b82..69b91f02b0 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 547818bf87..0ffb92f549 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",