If no location is set, default to Cal Video (#5812)
* Default to Cal Video * Show web conferencing details to follow on success page * Show web conferencing details to follow on success page * Show web conferencing details to follow on success page * Type fixes * Pass tests Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
056406bdd9
commit
5e88ad50ea
5 files changed
+18
-4
No files matched your search
@@ -47,6 +47,14 @@ const createMeeting = async (credential: CredentialWithAppName, calEvent: Calend
|
||||
const [firstVideoAdapter] = videoAdapters;
|
||||
let createdMeeting;
|
||||
try {
|
||||
if (!calEvent.location) {
|
||||
const defaultMeeting = await createMeetingWithCalVideo(calEvent);
|
||||
if (defaultMeeting) {
|
||||
createdMeeting = defaultMeeting;
|
||||
calEvent.location = "integrations:dailyvideo";
|
||||
}
|
||||
}
|
||||
|
||||
createdMeeting = await firstVideoAdapter?.createMeeting(calEvent);
|
||||
|
||||
if (!createdMeeting) {
|
||||
|
||||
Reference in new issue
Block a user