Browse Source

Add conference name as fallback for subject

master
Vlad Piersec 5 years ago
parent
commit
9889cb2b69
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      react/features/conference/components/web/Subject.js

+ 4
- 3
react/features/conference/components/web/Subject.js View File

2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 
4
 
5
+import { getConferenceName } from '../../../base/conference/functions';
5
 import { connect } from '../../../base/redux';
6
 import { connect } from '../../../base/redux';
6
 import { isToolboxVisible } from '../../../toolbox';
7
 import { isToolboxVisible } from '../../../toolbox';
7
 
8
 
13
 type Props = {
14
 type Props = {
14
 
15
 
15
     /**
16
     /**
16
-     * The subject of the conference.
17
+     * The subject or the of the conference.
18
+     * Falls back to conference name.
17
      */
19
      */
18
     _subject: string,
20
     _subject: string,
19
 
21
 
60
  * }}
62
  * }}
61
  */
63
  */
62
 function _mapStateToProps(state) {
64
 function _mapStateToProps(state) {
63
-    const { subject } = state['features/base/conference'];
64
 
65
 
65
     return {
66
     return {
66
-        _subject: subject,
67
+        _subject: getConferenceName(state),
67
         _visible: isToolboxVisible(state)
68
         _visible: isToolboxVisible(state)
68
     };
69
     };
69
 }
70
 }

Loading…
Cancel
Save