conference: clear the pending subject after it has been set
This commit is contained in:
parent
9a8a070c62
commit
871026f4ba
|
@ -759,10 +759,6 @@ export function setSubject(subject: string = '') {
|
|||
const { conference } = getState()['features/base/conference'];
|
||||
|
||||
if (conference) {
|
||||
dispatch({
|
||||
type: SET_PENDING_SUBJECT_CHANGE,
|
||||
subject: undefined
|
||||
});
|
||||
conference.setSubject(subject);
|
||||
} else {
|
||||
dispatch({
|
||||
|
|
|
@ -36,7 +36,8 @@ import {
|
|||
CONFERENCE_WILL_LEAVE,
|
||||
DATA_CHANNEL_OPENED,
|
||||
SET_AUDIO_ONLY,
|
||||
SET_LASTN
|
||||
SET_LASTN,
|
||||
SET_PENDING_SUBJECT_CHANGE
|
||||
} from './actionTypes';
|
||||
import {
|
||||
_addLocalTracksToConference,
|
||||
|
@ -324,10 +325,17 @@ function _connectionFailed({ dispatch, getState }, next, action) {
|
|||
* @private
|
||||
* @returns {Object} The value returned by {@code next(action)}.
|
||||
*/
|
||||
function _conferenceSubjectChanged({ getState }, next, action) {
|
||||
function _conferenceSubjectChanged({ dispatch, getState }, next, action) {
|
||||
const result = next(action);
|
||||
const { subject } = getState()['features/base/conference'];
|
||||
|
||||
if (subject) {
|
||||
dispatch({
|
||||
type: SET_PENDING_SUBJECT_CHANGE,
|
||||
subject: undefined
|
||||
});
|
||||
}
|
||||
|
||||
typeof APP === 'object' && APP.API.notifySubjectChanged(subject);
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue