mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Remove incorrect guards from addMedia functions.
These functions require having joined a group, not just having proper credentials.
This commit is contained in:
parent
13a44b2a37
commit
b7aea3a4d1
1 changed files with 0 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue