diff --git a/static/idaa_novi_iframe_jitsi_meeting.html b/static/idaa_novi_iframe_jitsi_meeting.html index 0e33dc80..c5a2c27b 100644 --- a/static/idaa_novi_iframe_jitsi_meeting.html +++ b/static/idaa_novi_iframe_jitsi_meeting.html @@ -51,12 +51,21 @@ fetch(novi_api_get_customer_endpoint, requestOptions) .then(response => response.json()) .then(result => { novi_current_user_obj = result; + console.log(`Novi's Current User Obj:`, novi_current_user_obj); // console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj); + let full_name = novi_current_user_obj?.Name; + let first_name = novi_current_user_obj?.FirstName; + let last_initial = (novi_current_user_obj?.LastName) ? novi_current_user_obj.LastName.charAt(0).toUpperCase() + '.' : ''; + if (last_initial) { + full_name = `${first_name} ${last_initial}`; + } + console.log(`Novi's Current User's Full Name: ${full_name}`); + let idaa_ae_iframe_element = document.getElementById('ae_idaa_jitsi_meeting_iframe'); - idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&moderator=${is_moderator}&room=${room_name}&iframe=true&key=${idaa_osit_site_key}`; + idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${full_name}&moderator=${is_moderator}&room=${room_name}&iframe=true&key=${idaa_osit_site_key}`; // url.searchParams.delete('event_id'); // history.pushState({}, '', url); diff --git a/static/jitsi_iframe_api.html b/static/jitsi_iframe_api.html index 91e2aebb..04a0f653 100644 --- a/static/jitsi_iframe_api.html +++ b/static/jitsi_iframe_api.html @@ -9,7 +9,7 @@
The URL parameters are passed from the Novi page that contains this as an iframe. This will automatically set the attendees name, email address, moderator status, and room name. The moderator status is based on the Novi UUID.
+The URL parameters are passed from the Novi page that contains this as an iframe. This will automatically set the attendees name, email address, moderator status, and room name. The moderator status is based on the Novi UUID. This message will be hidden before going live.
@@ -46,7 +46,7 @@ if (novi_jitsi_mod_li.includes(user_id)) { async function getJitsiJwt() { // This is the URL of your backend API endpoint. // It's a server-side route that will create the JWT for you. - const tokenEndpoint = 'https://dev-api.oneskyit.com/api/jitsi_token'; + const tokenEndpoint = 'https://api.oneskyit.com/api/jitsi_token'; // Pass user information and moderator status to the backend const payload = {