mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 19:37:47 +00:00
DialInNumbersForm has been modified to display a conference id to be used for dialing into the conference. The changes include: - Requesting the conference id and adding the conference id to the redux store - Displaying the conference id in DialInNumbersForm - Modifying the copy behavior to support copying the new message to clipboard - DialInNumbersForm does not display until all ajax requests have completed successfully. This eliminates the need for the REQUESTING state.
39 lines
839 B
JavaScript
39 lines
839 B
JavaScript
import {
|
|
ReducerRegistry
|
|
} from '../base/redux';
|
|
|
|
import {
|
|
UPDATE_DIAL_IN_NUMBERS_FAILED,
|
|
UPDATE_DIAL_IN_NUMBERS_SUCCESS
|
|
} from './actionTypes';
|
|
|
|
const DEFAULT_STATE = {
|
|
numbersEnabled: true
|
|
};
|
|
|
|
ReducerRegistry.register(
|
|
'features/invite/dial-in',
|
|
(state = DEFAULT_STATE, action) => {
|
|
switch (action.type) {
|
|
case UPDATE_DIAL_IN_NUMBERS_FAILED: {
|
|
return {
|
|
...state,
|
|
error: action.error
|
|
};
|
|
}
|
|
|
|
case UPDATE_DIAL_IN_NUMBERS_SUCCESS: {
|
|
const { numbers, numbersEnabled } = action.dialInNumbers;
|
|
|
|
return {
|
|
conferenceId: action.conferenceId.id,
|
|
error: null,
|
|
numbers,
|
|
numbersEnabled
|
|
};
|
|
}
|
|
}
|
|
|
|
return state;
|
|
});
|