|
|
|
@ -10,8 +10,8 @@ import { translate } from '../../../../base/i18n/functions'; |
|
|
|
|
import { JitsiRecordingConstants } from '../../../../base/lib-jitsi-meet'; |
|
|
|
|
import { connect } from '../../../../base/redux/functions'; |
|
|
|
|
import Dialog from '../../../../base/ui/components/web/Dialog'; |
|
|
|
|
import { StatusCode } from '../../../../base/util/uri'; |
|
|
|
|
import { isDynamicBrandingDataLoaded } from '../../../../dynamic-branding/functions.any'; |
|
|
|
|
import { isVpaasMeeting } from '../../../../jaas/functions'; |
|
|
|
|
import { getActiveSession } from '../../../../recording/functions'; |
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { updateDialInNumbers } from '../../../actions'; |
|
|
|
@ -80,9 +80,9 @@ interface IProps extends WithTranslation { |
|
|
|
|
_inviteUrl: string; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Whether or not the current meeting belongs to a JaaS user. |
|
|
|
|
* Whether the dial in limit has been exceeded. |
|
|
|
|
*/ |
|
|
|
|
_isVpaasMeeting: boolean; |
|
|
|
|
_isDialInOverLimit?: boolean; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The current known URL for a live stream in progress. |
|
|
|
@ -120,7 +120,7 @@ function AddPeopleDialog({ |
|
|
|
|
_inviteAppName, |
|
|
|
|
_inviteContactsVisible, |
|
|
|
|
_inviteUrl, |
|
|
|
|
_isVpaasMeeting, |
|
|
|
|
_isDialInOverLimit, |
|
|
|
|
_liveStreamViewURL, |
|
|
|
|
_phoneNumber, |
|
|
|
|
t, |
|
|
|
@ -182,7 +182,7 @@ function AddPeopleDialog({ |
|
|
|
|
&& <DialInSection phoneNumber = { _phoneNumber } /> |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
!_phoneNumber && _dialInVisible && _isVpaasMeeting && <DialInLimit /> |
|
|
|
|
!_phoneNumber && _dialInVisible && _isDialInOverLimit && <DialInLimit /> |
|
|
|
|
} |
|
|
|
|
</div> |
|
|
|
|
</Dialog> |
|
|
|
@ -207,6 +207,7 @@ function mapStateToProps(state: IReduxState, ownProps: Partial<IProps>) { |
|
|
|
|
const hideInviteContacts = iAmRecorder || (!addPeopleEnabled && !dialOutEnabled); |
|
|
|
|
const dialIn = state['features/invite']; // @ts-ignore
|
|
|
|
|
const phoneNumber = dialIn?.numbers ? _getDefaultPhoneNumber(dialIn.numbers) : undefined; |
|
|
|
|
const isDialInOverLimit = dialIn?.error?.status === StatusCode.PaymentRequired; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
_dialIn: dialIn, |
|
|
|
@ -222,7 +223,7 @@ function mapStateToProps(state: IReduxState, ownProps: Partial<IProps>) { |
|
|
|
|
_inviteAppName: inviteAppName, |
|
|
|
|
_inviteContactsVisible: interfaceConfig.ENABLE_DIAL_OUT && !hideInviteContacts, |
|
|
|
|
_inviteUrl: getInviteURL(state), |
|
|
|
|
_isVpaasMeeting: isVpaasMeeting(state), |
|
|
|
|
_isDialInOverLimit: isDialInOverLimit, |
|
|
|
|
_liveStreamViewURL: currentLiveStreamingSession?.liveStreamViewURL, |
|
|
|
|
_phoneNumber: phoneNumber |
|
|
|
|
}; |
|
|
|
|