ソースを参照

conference: clear the pending subject after it has been set

master
Saúl Ibarra Corretgé 6年前
コミット
871026f4ba
2個のファイルの変更10行の追加6行の削除
  1. 0
    4
      react/features/base/conference/actions.js
  2. 10
    2
      react/features/base/conference/middleware.js

+ 0
- 4
react/features/base/conference/actions.js ファイルの表示

@@ -759,10 +759,6 @@ export function setSubject(subject: string = '') {
759 759
         const { conference } = getState()['features/base/conference'];
760 760
 
761 761
         if (conference) {
762
-            dispatch({
763
-                type: SET_PENDING_SUBJECT_CHANGE,
764
-                subject: undefined
765
-            });
766 762
             conference.setSubject(subject);
767 763
         } else {
768 764
             dispatch({

+ 10
- 2
react/features/base/conference/middleware.js ファイルの表示

@@ -36,7 +36,8 @@ import {
36 36
     CONFERENCE_WILL_LEAVE,
37 37
     DATA_CHANNEL_OPENED,
38 38
     SET_AUDIO_ONLY,
39
-    SET_LASTN
39
+    SET_LASTN,
40
+    SET_PENDING_SUBJECT_CHANGE
40 41
 } from './actionTypes';
41 42
 import {
42 43
     _addLocalTracksToConference,
@@ -324,10 +325,17 @@ function _connectionFailed({ dispatch, getState }, next, action) {
324 325
  * @private
325 326
  * @returns {Object} The value returned by {@code next(action)}.
326 327
  */
327
-function _conferenceSubjectChanged({ getState }, next, action) {
328
+function _conferenceSubjectChanged({ dispatch, getState }, next, action) {
328 329
     const result = next(action);
329 330
     const { subject } = getState()['features/base/conference'];
330 331
 
332
+    if (subject) {
333
+        dispatch({
334
+            type: SET_PENDING_SUBJECT_CHANGE,
335
+            subject: undefined
336
+        });
337
+    }
338
+
331 339
     typeof APP === 'object' && APP.API.notifySubjectChanged(subject);
332 340
 
333 341
     return result;

読み込み中…
キャンセル
保存