Show a "Your camera is turned off" toast

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-21 18:22:47 +02:00
parent 3fac4adfc7
commit ddd4b4bc12
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
2 changed files with 5 additions and 2 deletions

View file

@ -757,8 +757,10 @@ export default class CallView extends React.Component<IProps, IState> {
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 = (