Update the toast
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
							parent
							
								
									be52eba027
								
							
						
					
					
						commit
						51cf426179
					
				| 
						 | 
				
			
			@ -739,18 +739,18 @@ export default class CallView extends React.Component<IProps, IState> {
 | 
			
		|||
            });
 | 
			
		||||
 | 
			
		||||
            let presenting;
 | 
			
		||||
            if (
 | 
			
		||||
                this.state.primaryFeed?.purpose === SDPStreamMetadataPurpose.Screenshare ||
 | 
			
		||||
                this.props.call.isScreensharing()
 | 
			
		||||
            ) {
 | 
			
		||||
            if (this.props.call.getFeeds().some((feed) => feed.purpose === SDPStreamMetadataPurpose.Screenshare)) {
 | 
			
		||||
                const presentingClasses = classNames({
 | 
			
		||||
                    mx_CallView_presenting: true,
 | 
			
		||||
                    mx_CallView_presenting_hidden: !this.state.controlsVisible,
 | 
			
		||||
                });
 | 
			
		||||
                const sharerName = this.state.primaryFeed.getMember().name;
 | 
			
		||||
                const text = this.props.call.isScreensharing()
 | 
			
		||||
                let text = this.props.call.isScreensharing()
 | 
			
		||||
                    ? _t("You are presenting")
 | 
			
		||||
                    : _t('%(sharerName)s is presenting', { sharerName });
 | 
			
		||||
                if (!this.state.sidebarShown) {
 | 
			
		||||
                    text += " • " + _t("Your camera is still enabled");
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                presenting = (
 | 
			
		||||
                    <div className={presentingClasses}>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -897,6 +897,7 @@
 | 
			
		|||
    "Connecting": "Connecting",
 | 
			
		||||
    "You are presenting": "You are presenting",
 | 
			
		||||
    "%(sharerName)s is presenting": "%(sharerName)s is presenting",
 | 
			
		||||
    "Your camera is still enabled": "Your camera is still enabled",
 | 
			
		||||
    "Video Call": "Video Call",
 | 
			
		||||
    "Voice Call": "Voice Call",
 | 
			
		||||
    "Fill Screen": "Fill Screen",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue