feat: Add the support for video calls with Dyte in the live-chat widget (#6208)

Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
Co-authored-by: iamsivin <iamsivin@gmail.com>
This commit is contained in:
Pranav Raj S
2023-01-09 11:52:31 -08:00
committed by GitHub
parent 24cf7af30b
commit ffb4bd0109
12 changed files with 283 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
import { API } from 'widget/helpers/axios';
import { buildSearchParamsWithLocale } from '../helpers/urlParamsHelper';
export default {
addParticipantToDyteMeeting: messageId => {
const search = buildSearchParamsWithLocale(window.location.search);
const urlData = {
url: `/api/v1/widget/integrations/dyte/add_participant_to_meeting${search}`,
};
return API.post(urlData.url, { message_id: messageId });
},
};