|
|
@@ -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;
|