Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Add conference name as fallback for subject

Vlad Piersec9889cb2b6969
diff --git a/react/features/conference/components/web/Subject.js b/react/features/conference/components/web/Subject.js
index d8790a3067..472641cbb8 100644
--- a/react/features/conference/components/web/Subject.js
+++ b/react/features/conference/components/web/Subject.js
@@ -2,6 +2,7 @@
import React, { Component } from 'react';
+import { getConferenceName } from '../../../base/conference/functions';
import { connect } from '../../../base/redux';
import { isToolboxVisible } from '../../../toolbox';
@@ -13,7 +14,8 @@ import ParticipantsCount from './ParticipantsCount';
type Props = {
/**
- * The subject of the conference.
+ * The subject or the of the conference.
+ * Falls back to conference name.
*/
_subject: string,
@@ -60,10 +62,9 @@ class Subject extends Component<Props> {
* }}
*/
function _mapStateToProps(state) {
- const { subject } = state['features/base/conference'];
return {
- _subject: subject,
+ _subject: getConferenceName(state),
_visible: isToolboxVisible(state)
};
}