Sfoglia il codice sorgente

conference: add room name to browser title

Re-do of
86ebfe8dad
j8
Saúl Ibarra Corretgé 5 anni fa
parent
commit
bb2b1b58ec
1 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. 10
    2
      react/features/conference/components/web/Conference.js

+ 10
- 2
react/features/conference/components/web/Conference.js Vedi File

8
 import { connect, disconnect } from '../../../base/connection';
8
 import { connect, disconnect } from '../../../base/connection';
9
 import { translate } from '../../../base/i18n';
9
 import { translate } from '../../../base/i18n';
10
 import { connect as reactReduxConnect } from '../../../base/redux';
10
 import { connect as reactReduxConnect } from '../../../base/redux';
11
+import { getBackendSafeRoomName } from '../../../base/util';
11
 import { Chat } from '../../../chat';
12
 import { Chat } from '../../../chat';
12
 import { Filmstrip } from '../../../filmstrip';
13
 import { Filmstrip } from '../../../filmstrip';
13
 import { CalleeInfoContainer } from '../../../invite';
14
 import { CalleeInfoContainer } from '../../../invite';
78
      */
79
      */
79
     _layoutClassName: string,
80
     _layoutClassName: string,
80
 
81
 
82
+    /**
83
+     * Name for this conference room.
84
+     */
85
+    _roomName: string,
86
+
81
     dispatch: Function,
87
     dispatch: Function,
82
     t: Function
88
     t: Function
83
 }
89
 }
120
      * @inheritdoc
126
      * @inheritdoc
121
      */
127
      */
122
     componentDidMount() {
128
     componentDidMount() {
123
-        document.title = interfaceConfig.APP_NAME;
129
+        document.title = `${this.props._roomName} | ${interfaceConfig.APP_NAME}`;
124
         this._start();
130
         this._start();
125
     }
131
     }
126
 
132
 
259
  */
265
  */
260
 function _mapStateToProps(state) {
266
 function _mapStateToProps(state) {
261
     const currentLayout = getCurrentLayout(state);
267
     const currentLayout = getCurrentLayout(state);
268
+    const roomName = getBackendSafeRoomName(state['features/base/conference'].room);
262
 
269
 
263
     return {
270
     return {
264
         ...abstractMapStateToProps(state),
271
         ...abstractMapStateToProps(state),
265
         _iAmRecorder: state['features/base/config'].iAmRecorder,
272
         _iAmRecorder: state['features/base/config'].iAmRecorder,
266
-        _layoutClassName: LAYOUT_CLASSNAMES[currentLayout]
273
+        _layoutClassName: LAYOUT_CLASSNAMES[currentLayout],
274
+        _roomName: roomName
267
     };
275
     };
268
 }
276
 }
269
 
277
 

Loading…
Annulla
Salva