Update the toast

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

View file

@ -739,18 +739,18 @@ export default class CallView extends React.Component<IProps, IState> {
}); });
let presenting; let presenting;
if ( if (this.props.call.getFeeds().some((feed) => feed.purpose === SDPStreamMetadataPurpose.Screenshare)) {
this.state.primaryFeed?.purpose === SDPStreamMetadataPurpose.Screenshare ||
this.props.call.isScreensharing()
) {
const presentingClasses = classNames({ const presentingClasses = classNames({
mx_CallView_presenting: true, mx_CallView_presenting: true,
mx_CallView_presenting_hidden: !this.state.controlsVisible, mx_CallView_presenting_hidden: !this.state.controlsVisible,
}); });
const sharerName = this.state.primaryFeed.getMember().name; const sharerName = this.state.primaryFeed.getMember().name;
const text = this.props.call.isScreensharing() let text = this.props.call.isScreensharing()
? _t("You are presenting") ? _t("You are presenting")
: _t('%(sharerName)s is presenting', { sharerName }); : _t('%(sharerName)s is presenting', { sharerName });
if (!this.state.sidebarShown) {
text += " • " + _t("Your camera is still enabled");
}
presenting = ( presenting = (
<div className={presentingClasses}> <div className={presentingClasses}>

View file

@ -897,6 +897,7 @@
"Connecting": "Connecting", "Connecting": "Connecting",
"You are presenting": "You are presenting", "You are presenting": "You are presenting",
"%(sharerName)s is presenting": "%(sharerName)s is presenting", "%(sharerName)s is presenting": "%(sharerName)s is presenting",
"Your camera is still enabled": "Your camera is still enabled",
"Video Call": "Video Call", "Video Call": "Video Call",
"Voice Call": "Voice Call", "Voice Call": "Voice Call",
"Fill Screen": "Fill Screen", "Fill Screen": "Fill Screen",