mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
Review
https://github.com/element-hq/element-call/pull/2475#pullrequestreview-2175298702
This commit is contained in:
@@ -161,8 +161,7 @@ export class PosthogSpanProcessor implements SpanProcessor {
|
|||||||
/**
|
/**
|
||||||
* Shutdown the processor.
|
* Shutdown the processor.
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
|
||||||
public async shutdown(): Promise<void> {
|
public async shutdown(): Promise<void> {
|
||||||
return;
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,14 +35,10 @@ export class Config {
|
|||||||
return Config.internalInstance.initPromise;
|
return Config.internalInstance.initPromise;
|
||||||
}
|
}
|
||||||
Config.internalInstance = new Config();
|
Config.internalInstance = new Config();
|
||||||
Config.internalInstance.initPromise = new Promise<void>(
|
|
||||||
(resolve, reject) => {
|
Config.internalInstance.initPromise = downloadConfig("../config.json").then(
|
||||||
downloadConfig("../config.json")
|
(config) => {
|
||||||
.then((config) => {
|
Config.internalInstance.config = { ...DEFAULT_CONFIG, ...config };
|
||||||
Config.internalInstance.config = { ...DEFAULT_CONFIG, ...config };
|
|
||||||
resolve();
|
|
||||||
})
|
|
||||||
.catch(reject);
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
return Config.internalInstance.initPromise;
|
return Config.internalInstance.initPromise;
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export function makeActiveFocus(): LivekitFocusActive {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
|
||||||
async function makePreferredLivekitFoci(
|
async function makePreferredLivekitFoci(
|
||||||
rtcSession: MatrixRTCSession,
|
rtcSession: MatrixRTCSession,
|
||||||
livekitAlias: string,
|
livekitAlias: string,
|
||||||
@@ -84,8 +83,7 @@ async function makePreferredLivekitFoci(
|
|||||||
`No livekit_service_url is configured so we could not create a focus.
|
`No livekit_service_url is configured so we could not create a focus.
|
||||||
Currently we skip computing a focus based on other users in the room.`,
|
Currently we skip computing a focus based on other users in the room.`,
|
||||||
);
|
);
|
||||||
|
return Promise.resolve(preferredFoci);
|
||||||
return preferredFoci;
|
|
||||||
|
|
||||||
// TODO: we want to do something like this:
|
// TODO: we want to do something like this:
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user