-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the livekit URL in matroyshka mode #1225
Conversation
This is a bit of a hack, as commented. The way to make it less of a hack is there too. Fixes embedded mode, although users will get a permission prompt without matrix-org/matrix-react-sdk#11209. Fixes #1201
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## livekit #1225 +/- ##
==========================================
Coverage ? 25.38%
==========================================
Files ? 48
Lines ? 1950
Branches ? 297
==========================================
Hits ? 495
Misses ? 1425
Partials ? 30
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
|
||
const clientPromise = new Promise<MatrixClient>((resolve) => { | ||
(async () => { | ||
await Config.init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to be redundant with what the initializer is doing? do we not have the initializer in embedded mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry, added a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This migh result in duplicated downloads of the json right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config.init
has a few lines that look like this:
if (Config.internalInstance?.initPromise) {
return Config.internalInstance.initPromise;
}
so that doesn't appear to be the case. If there's already a request promise in flight, it returns that same promise.
This is a bit of a hack, as commented. The way to make it less of a hack is there too.
Fixes embedded mode, although users will get a permission prompt without matrix-org/matrix-react-sdk#11209.
Fixes #1201