fix: jitsi email does not contain meeting link (#2004)
This commit is contained in:
parent
15052c8b48
commit
c437f15868
3 changed files with 18 additions and 4 deletions
|
@ -85,9 +85,6 @@ const BookingPage = (props: BookingPageProps) => {
|
||||||
if (!location) {
|
if (!location) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (location === "integrations:jitsi") {
|
|
||||||
return "https://meet.jit.si/cal/" + uuidv4();
|
|
||||||
}
|
|
||||||
if (location.includes("integration")) {
|
if (location.includes("integration")) {
|
||||||
return t("web_conferencing_details_to_follow");
|
return t("web_conferencing_details_to_follow");
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import { v5 as uuidv5 } from "uuid";
|
||||||
|
|
||||||
import { FAKE_DAILY_CREDENTIAL } from "@lib/integrations/Daily/DailyVideoApiAdapter";
|
import { FAKE_DAILY_CREDENTIAL } from "@lib/integrations/Daily/DailyVideoApiAdapter";
|
||||||
import { FAKE_HUDDLE_CREDENTIAL } from "@lib/integrations/Huddle01/Huddle01VideoApiAdapter";
|
import { FAKE_HUDDLE_CREDENTIAL } from "@lib/integrations/Huddle01/Huddle01VideoApiAdapter";
|
||||||
|
import { FAKE_JITSI_CREDENTIAL } from "@lib/integrations/Jitsi/JitsiVideoApiAdapter";
|
||||||
import { createEvent, updateEvent } from "@lib/integrations/calendar/CalendarManager";
|
import { createEvent, updateEvent } from "@lib/integrations/calendar/CalendarManager";
|
||||||
import { AdditionInformation, CalendarEvent } from "@lib/integrations/calendar/interfaces/Calendar";
|
import { AdditionInformation, CalendarEvent } from "@lib/integrations/calendar/interfaces/Calendar";
|
||||||
import { LocationType } from "@lib/location";
|
import { LocationType } from "@lib/location";
|
||||||
|
@ -57,8 +58,14 @@ export const isTandem = (location: string): boolean => {
|
||||||
return location === "integrations:tandem";
|
return location === "integrations:tandem";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const isJitsi = (location: string): boolean => {
|
||||||
|
return location === "integrations:jitsi";
|
||||||
|
};
|
||||||
|
|
||||||
export const isDedicatedIntegration = (location: string): boolean => {
|
export const isDedicatedIntegration = (location: string): boolean => {
|
||||||
return isZoom(location) || isDaily(location) || isHuddle01(location) || isTandem(location);
|
return (
|
||||||
|
isZoom(location) || isDaily(location) || isHuddle01(location) || isTandem(location) || isJitsi(location)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getLocationRequestFromIntegration = (location: string) => {
|
export const getLocationRequestFromIntegration = (location: string) => {
|
||||||
|
@ -121,6 +128,7 @@ export default class EventManager {
|
||||||
this.videoCredentials.push(FAKE_DAILY_CREDENTIAL);
|
this.videoCredentials.push(FAKE_DAILY_CREDENTIAL);
|
||||||
}
|
}
|
||||||
this.videoCredentials.push(FAKE_HUDDLE_CREDENTIAL);
|
this.videoCredentials.push(FAKE_HUDDLE_CREDENTIAL);
|
||||||
|
this.videoCredentials.push(FAKE_JITSI_CREDENTIAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
|
import { Credential } from "@prisma/client";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
|
|
||||||
import { PartialReference } from "@lib/events/EventManager";
|
import { PartialReference } from "@lib/events/EventManager";
|
||||||
|
import { randomString } from "@lib/random";
|
||||||
import { VideoApiAdapter, VideoCallData } from "@lib/videoClient";
|
import { VideoApiAdapter, VideoCallData } from "@lib/videoClient";
|
||||||
|
|
||||||
|
export const FAKE_JITSI_CREDENTIAL: Credential = {
|
||||||
|
id: +new Date().getTime(),
|
||||||
|
type: "jitsi_video",
|
||||||
|
key: { apikey: randomString(12) },
|
||||||
|
userId: +new Date().getTime(),
|
||||||
|
};
|
||||||
|
|
||||||
const JitsiVideoApiAdapter = (): VideoApiAdapter => {
|
const JitsiVideoApiAdapter = (): VideoApiAdapter => {
|
||||||
return {
|
return {
|
||||||
getAvailability: () => {
|
getAvailability: () => {
|
||||||
|
|
Loading…
Reference in a new issue