From b7aea3a4d15cca5c8f05952863c1749e99c32a4c Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 12 Dec 2020 23:31:54 +0100 Subject: [PATCH] Remove incorrect guards from addMedia functions. These functions require having joined a group, not just having proper credentials. --- static/galene.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/static/galene.js b/static/galene.js index b95100f..6d4a09d 100644 --- a/static/galene.js +++ b/static/galene.js @@ -773,9 +773,6 @@ function isSafari() { * @param {string} [id] */ async function addLocalMedia(id) { - if(!getUserPass()) - return; - let settings = getSettings(); let audio = settings.audio ? {deviceId: settings.audio} : false; @@ -841,9 +838,6 @@ async function addLocalMedia(id) { let safariScreenshareDone = false; async function addShareMedia() { - if(!getUserPass()) - return; - /** @type {MediaStream} */ let stream = null; try { @@ -884,9 +878,6 @@ async function addShareMedia() { * @param {File} file */ async function addFileMedia(file) { - if(!getUserPass()) - return; - let url = URL.createObjectURL(file); let video = document.createElement('video'); video.src = url;