From ddd4b4bc126136d5fc35851e3605f6c8313fda8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 21 Jul 2021 18:22:47 +0200 Subject: [PATCH] Show a "Your camera is turned off" toast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallView.tsx | 6 ++++-- src/i18n/strings/en_EN.json | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 033b3511e9..501f6bf8d9 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -757,8 +757,10 @@ export default class CallView extends React.Component { let text = isScreensharing ? _t("You are presenting") : _t('%(sharerName)s is presenting', { sharerName }); - if (!this.state.sidebarShown) { - text += " • " + _t("Your camera is still enabled"); + if (!this.state.sidebarShown && isScreensharing) { + text += " • " + (this.props.call.isLocalVideoMuted() + ? _t("Your camera is turned off") + : _t("Your camera is still enabled")); } presenting = ( diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index b781cc9978..f8281417e7 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -897,6 +897,7 @@ "Connecting": "Connecting", "You are presenting": "You are presenting", "%(sharerName)s is presenting": "%(sharerName)s is presenting", + "Your camera is turned off": "Your camera is turned off", "Your camera is still enabled": "Your camera is still enabled", "Video Call": "Video Call", "Voice Call": "Voice Call",