Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(shared-video): Fix skip showing confirm dialog for YouTube links.

damencho697ede207b4c
diff --git a/react/features/shared-video/middleware.any.ts b/react/features/shared-video/middleware.any.ts
index 328f8c8c12..d41dec7150 100644
--- a/react/features/shared-video/middleware.any.ts
+++ b/react/features/shared-video/middleware.any.ts
@@ -65,7 +65,7 @@ MiddlewareRegistry.register(store => next => action => {
return;
}
- if (isURLAllowedForSharedVideo(value)
+ if (isURLAllowedForSharedVideo(value, getState()['features/shared-video'].allowedUrlDomains, true)
|| localParticipantId === from
|| getState()['features/shared-video'].confirmShowVideo) { // if confirmed skip asking again
handleSharingVideoStatus(store, value, attributes, conference);