Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(sip-invite) add minor fixes to sip invite flow

Tudor-Ovidiu Avramf0f9c024523f
diff --git a/react/features/invite/actions.any.js b/react/features/invite/actions.any.js
index 2bae83ef9f..8938904265 100644
--- a/react/features/invite/actions.any.js
+++ b/react/features/invite/actions.any.js
@@ -81,7 +81,7 @@ export function invite(
dispatch(setCalleeInfoVisible(true, invitees[0]));
}
- const { conference } = state['features/base/conference'];
+ const { conference, password } = state['features/base/conference'];
if (typeof conference === 'undefined') {
// Invite will fail before CONFERENCE_JOIN. The request will be
@@ -177,7 +177,7 @@ export function invite(
sipInviteUrl,
jwt,
conference.options.name,
- conference.password,
+ password,
displayName
);
diff --git a/react/features/invite/components/add-people-dialog/AbstractAddPeopleDialog.js b/react/features/invite/components/add-people-dialog/AbstractAddPeopleDialog.js
index 794d303116..57d0d3da3c 100644
--- a/react/features/invite/components/add-people-dialog/AbstractAddPeopleDialog.js
+++ b/react/features/invite/components/add-people-dialog/AbstractAddPeopleDialog.js
@@ -160,7 +160,7 @@ export default class AbstractAddPeopleDialog<P: Props, S: State>
if (invitedCount >= 3) {
notificationProps = {
titleArguments: {
- name: invitees[0].name,
+ name: invitees[0].name || invitees[0].address,
count: invitedCount - 1
},
titleKey: 'notify.invitedThreePlusMembers'
@@ -168,15 +168,15 @@ export default class AbstractAddPeopleDialog<P: Props, S: State>
} else if (invitedCount === 2) {
notificationProps = {
titleArguments: {
- first: invitees[0].name,
- second: invitees[1].name
+ first: invitees[0].name || invitees[0].address,
+ second: invitees[1].name || invitees[1].address
},
titleKey: 'notify.invitedTwoMembers'
};
} else if (invitedCount) {
notificationProps = {
titleArguments: {
- name: invitees[0].name
+ name: invitees[0].name || invitees[0].address
},
titleKey: 'notify.invitedOneMember'
};
diff --git a/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js b/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js
index fbeb46797d..7b108a23e7 100644
--- a/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js
+++ b/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js
@@ -356,7 +356,7 @@ class InviteContactsForm extends AbstractAddPeopleDialog<Props, State> {
filterValues: [
sip.address
],
- content: t('addPeople.sip', { address: sip.address }),
+ content: sip.address,
description: '',
item: sip,
value: sip.address
diff --git a/react/features/lobby/components/native/KnockingParticipantList.js b/react/features/lobby/components/native/KnockingParticipantList.js
index e511f70d87..192dbba632 100644
--- a/react/features/lobby/components/native/KnockingParticipantList.js
+++ b/react/features/lobby/components/native/KnockingParticipantList.js
@@ -6,6 +6,7 @@ import { ScrollView, Text, View, TouchableOpacity } from 'react-native';
import { Avatar } from '../../../base/avatar';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
+import { HIDDEN_EMAILS } from '../../constants';
import AbstractKnockingParticipantList, {
mapStateToProps as abstractMapStateToProps,
type Props
@@ -44,7 +45,7 @@ class KnockingParticipantList extends AbstractKnockingParticipantList {
<Text style = { styles.knockingParticipantListText }>
{ p.name }
</Text>
- { p.email && (
+ { p.email && !HIDDEN_EMAILS.includes(p.email) && (
<Text style = { styles.knockingParticipantListText }>
{ p.email }
</Text>
diff --git a/react/features/lobby/components/web/KnockingParticipantList.js b/react/features/lobby/components/web/KnockingParticipantList.js
index 3a358d9e8c..6790040089 100644
--- a/react/features/lobby/components/web/KnockingParticipantList.js
+++ b/react/features/lobby/components/web/KnockingParticipantList.js
@@ -6,6 +6,7 @@ import { Avatar } from '../../../base/avatar';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import { isToolboxVisible } from '../../../toolbox/functions.web';
+import { HIDDEN_EMAILS } from '../../constants';
import AbstractKnockingParticipantList, {
mapStateToProps as abstractMapStateToProps,
type Props as AbstractProps
@@ -56,7 +57,7 @@ class KnockingParticipantList extends AbstractKnockingParticipantList<Props> {
<span data-testid = 'knockingParticipant.name'>
{ p.name }
</span>
- { p.email && (
+ { p.email && !HIDDEN_EMAILS.includes(p.email) && (
<span data-testid = 'knockingParticipant.email'>
{ p.email }
</span>
diff --git a/react/features/lobby/constants.js b/react/features/lobby/constants.js
new file mode 100644
index 0000000000..9140a92fa4
--- /dev/null
+++ b/react/features/lobby/constants.js
@@ -0,0 +1,4 @@
+/**
+ * Hide these emails when trying to join a lobby
+ */
+export const HIDDEN_EMAILS = [ '[email protected]', '[email protected]' ];