From 1d386a4bbc11dae9e6b0fef5a6f5cfe9f1a207d8 Mon Sep 17 00:00:00 2001 From: Pedro Beschorner Marin <pedrobmarin@gmail.com> Date: Fri, 12 Mar 2021 14:48:29 -0300 Subject: [PATCH] Remove outdated unsupported screenshare message --- .../imports/ui/components/media/container.jsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/media/container.jsx b/bigbluebutton-html5/imports/ui/components/media/container.jsx index 60b1076efe..0c6cda22f9 100755 --- a/bigbluebutton-html5/imports/ui/components/media/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/media/container.jsx @@ -35,17 +35,9 @@ const intlMessages = defineMessages({ id: 'app.media.screenshare.end', description: 'toast to show when a screenshare has ended', }, - screenshareNotSupported: { - id: 'app.media.screenshare.notSupported', - description: 'Error message for screenshare not supported', - }, }); class MediaContainer extends Component { - componentDidMount() { - document.addEventListener('screenshareNotSupported', this.screenshareNotSupported.bind(this)); - } - componentDidUpdate(prevProps) { const { isScreensharing, @@ -64,15 +56,6 @@ class MediaContainer extends Component { } } - componentWillUnmount() { - document.removeEventListener('screenshareNotSupported', this.screenshareNotSupported.bind(this)); - } - - screenshareNotSupported() { - const { intl } = this.props; - notify(intl.formatMessage(intlMessages.screenshareNotSupported), 'error', 'desktop'); - } - render() { return <Media {...this.props} />; } -- GitLab