Fix/event location when fallback video (#5216)
parent
1a104f172d
commit
a7a82a6b51
|
@ -98,8 +98,11 @@ export default class EventManager {
|
||||||
// If and only if event type is a dedicated meeting, create a dedicated video meeting.
|
// If and only if event type is a dedicated meeting, create a dedicated video meeting.
|
||||||
if (isDedicated) {
|
if (isDedicated) {
|
||||||
const result = await this.createVideoEvent(evt);
|
const result = await this.createVideoEvent(evt);
|
||||||
|
|
||||||
if (result.createdEvent) {
|
if (result.createdEvent) {
|
||||||
evt.videoCallData = result.createdEvent;
|
evt.videoCallData = result.createdEvent;
|
||||||
|
evt.location = result.originalEvent.location;
|
||||||
|
result.type = result.createdEvent.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
results.push(result);
|
results.push(result);
|
||||||
|
@ -113,6 +116,7 @@ export default class EventManager {
|
||||||
if (typeof result?.createdEvent === "string") {
|
if (typeof result?.createdEvent === "string") {
|
||||||
createdEventObj = createdEventSchema.parse(JSON.parse(result.createdEvent));
|
createdEventObj = createdEventSchema.parse(JSON.parse(result.createdEvent));
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: result.type,
|
type: result.type,
|
||||||
uid: createdEventObj ? createdEventObj.id : result.createdEvent?.id?.toString() ?? "",
|
uid: createdEventObj ? createdEventObj.id : result.createdEvent?.id?.toString() ?? "",
|
||||||
|
|
Loading…
Reference in New Issue