@tellescope/video-chat 0.0.72 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/video-chat",
3
- "version": "0.0.72",
3
+ "version": "0.0.75",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -33,13 +33,13 @@
33
33
  "@fontsource/roboto": "^4.5.1",
34
34
  "@mui/icons-material": "^5.0.1",
35
35
  "@mui/material": "^5.0.2",
36
- "@tellescope/constants": "^0.0.72",
37
- "@tellescope/react-components": "^0.0.72",
38
- "@tellescope/sdk": "^0.0.72",
39
- "@tellescope/types-client": "^0.0.72",
40
- "@tellescope/types-models": "^0.0.72",
41
- "@tellescope/types-utilities": "^0.0.72",
42
- "@tellescope/utilities": "^0.0.72",
36
+ "@tellescope/constants": "^0.0.75",
37
+ "@tellescope/react-components": "^0.0.75",
38
+ "@tellescope/sdk": "^0.0.75",
39
+ "@tellescope/types-client": "^0.0.75",
40
+ "@tellescope/types-models": "^0.0.75",
41
+ "@tellescope/types-utilities": "^0.0.75",
42
+ "@tellescope/utilities": "^0.0.75",
43
43
  "@typescript-eslint/eslint-plugin": "^4.33.0",
44
44
  "@typescript-eslint/parser": "^4.33.0",
45
45
  "amazon-chime-sdk-component-library-react": "^2.12.0",
@@ -54,7 +54,7 @@
54
54
  "react": "^17.0.2",
55
55
  "react-dom": "^17.0.2"
56
56
  },
57
- "gitHead": "3375652903724e3a594cee18e75257d0bab1d2ae",
57
+ "gitHead": "e8bca91f9f4b4bbfcdf165be8589ab06bf0e5539",
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  }
@@ -195,12 +195,7 @@ export const useStartVideoCall = (): StartVideoCallReturnType => {
195
195
  const createAndStartMeeting = async (initialAttendees?: UserIdentity[]) => {
196
196
  setStarting(true)
197
197
  try {
198
- const { id, meeting, host } = await session.api.meetings.start_meeting()
199
-
200
- if (initialAttendees) {
201
- session.api.meetings.add_attendees_to_meeting({ id: meeting.Meeting.ExternalMeetingId, attendees: initialAttendees })
202
- }
203
-
198
+ const { id, meeting, host } = await session.api.meetings.start_meeting({ attendees: initialAttendees })
204
199
  NativeFunction.startMeeting(meeting.Meeting, host.info.Attendee)
205
200
 
206
201
  setMeeting(meeting.Meeting)
package/src/video.tsx CHANGED
@@ -105,15 +105,11 @@ export const useStartVideoCall = (): StartVideoCallReturnType => {
105
105
  const createAndStartMeeting = async (initialAttendees?: UserIdentity[]) => {
106
106
  setStarting(true)
107
107
  try {
108
- const { id, meeting, host } = await session.api.meetings.start_meeting()
108
+ const { id, meeting, host } = await session.api.meetings.start_meeting({ attendees: initialAttendees })
109
109
 
110
110
  await meetingManager.join({ meetingInfo: meeting, attendeeInfo: host.info }); // Use the join API to create a meeting session
111
111
  await meetingManager.start(); // At this point you can let users setup their devices, or start the session immediately
112
112
 
113
- if (initialAttendees) {
114
- session.api.meetings.add_attendees_to_meeting({ id: meeting.Meeting.ExternalMeetingId, attendees: initialAttendees })
115
- }
116
-
117
113
  setMeeting(meeting.Meeting)
118
114
  setIsHost(true)
119
115
  return id