Fix/event location when fallback video (#5216)

This commit is contained in:
alannnc
2022-10-26 21:16:38 +01:00
committed by GitHub
parent 1a104f172d
commit a7a82a6b51
+4
View File
@@ -98,8 +98,11 @@ export default class EventManager {
// If and only if event type is a dedicated meeting, create a dedicated video meeting.
if (isDedicated) {
const result = await this.createVideoEvent(evt);
if (result.createdEvent) {
evt.videoCallData = result.createdEvent;
evt.location = result.originalEvent.location;
result.type = result.createdEvent.type;
}
results.push(result);
@@ -113,6 +116,7 @@ export default class EventManager {
if (typeof result?.createdEvent === "string") {
createdEventObj = createdEventSchema.parse(JSON.parse(result.createdEvent));
}
return {
type: result.type,
uid: createdEventObj ? createdEventObj.id : result.createdEvent?.id?.toString() ?? "",