Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(presence-label):styles
hristoterezov9331b0870b74
diff --git a/css/_videolayout_default.scss b/css/_videolayout_default.scssindex f6e63bf6e7..82c5a043fa 100644--- a/css/_videolayout_default.scss+++ b/css/_videolayout_default.scss@@ -627,7 +627,6 @@padding-left: 10px;padding-right: 10px;}-#remotePresenceMessage .no-presence,#remoteConnectionMessage {display: none;}diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.jsindex 0ca80102b5..f73d75e650 100644--- a/modules/UI/videolayout/LargeVideoManager.js+++ b/modules/UI/videolayout/LargeVideoManager.js@@ -429,11 +429,8 @@ export default class LargeVideoManager {<Provider store = { APP.store }><I18nextProvider i18n = { i18next }><PresenceLabel- noContentStyles = { {- className: 'presence-label no-presence'- } }participantID = { id }- styles = { { className: 'presence-label' } } />+ className = 'presence-label' /></I18nextProvider></Provider>,presenceLabelContainer.get(0));diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex 85645b504d..df3965165c 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -574,11 +574,8 @@ RemoteVideo.prototype.addPresenceLabel = function() {<Provider store = { APP.store }><I18nextProvider i18n = { i18next }><PresenceLabel- noContentStyles = { {- className: 'presence-label no-presence'- } }participantID = { this.id }- styles = { { className: 'presence-label' } } />+ className = 'presence-label' /></I18nextProvider></Provider>,presenceLabelContainer);diff --git a/react/features/invite/components/callee-info/CalleeInfo.js b/react/features/invite/components/callee-info/CalleeInfo.jsindex 0c17284add..49746ae6ef 100644--- a/react/features/invite/components/callee-info/CalleeInfo.js+++ b/react/features/invite/components/callee-info/CalleeInfo.js@@ -64,7 +64,7 @@ class CalleeInfo extends Component<Props> {<Container { ...this._style('ringing__status') }><PresenceLabeldefaultPresence = { status }- styles = { this._style('ringing__text') } />+ { ...this._style('ringing__text') } /></Container><Container { ...this._style('ringing__name') }><Textdiff --git a/react/features/presence-status/components/PresenceLabel.js b/react/features/presence-status/components/PresenceLabel.jsindex c4fb340ad2..2b52cc203c 100644--- a/react/features/presence-status/components/PresenceLabel.js+++ b/react/features/presence-status/components/PresenceLabel.js@@ -37,15 +37,15 @@ class PresenceLabel extends Component {_presence: PropTypes.string,/**- * Default presence status that will be displayed if user's presence- * status is not available.+ * Class name for the presence label.*/- defaultPresence: PropTypes.string,+ className: PropTypes.string,/**- * Styles for the case where there isn't any content to be shown.+ * Default presence status that will be displayed if user's presence+ * status is not available.*/- noContentStyles: PropTypes.object,+ defaultPresence: PropTypes.string,/*** The ID of the participant whose presence status shoul display.@@ -55,7 +55,7 @@ class PresenceLabel extends Component {/*** Styles for the presence label.*/- styles: PropTypes.object,+ style: PropTypes.object,/*** Invoked to obtain translated strings.@@ -70,14 +70,20 @@ class PresenceLabel extends Component {* @returns {ReactElement}*/render() {- const { _presence, styles, noContentStyles } = this.props;- const combinedStyles = _presence ? styles : noContentStyles;+ const text = this._getPresenceText();++ if (text === null) {+ return null;+ }++ const { style, className } = this.props;return (- <Text { ...combinedStyles }>- { this._getPresenceText() }- </Text>- );+ <Text+ className = { className }+ { ...style }>+ { text }+ </Text>);}/**