Commit b7aea3a4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove incorrect guards from addMedia functions.

These functions require having joined a group, not just having
proper credentials.
parent 13a44b2a
...@@ -773,9 +773,6 @@ function isSafari() { ...@@ -773,9 +773,6 @@ function isSafari() {
* @param {string} [id] * @param {string} [id]
*/ */
async function addLocalMedia(id) { async function addLocalMedia(id) {
if(!getUserPass())
return;
let settings = getSettings(); let settings = getSettings();
let audio = settings.audio ? {deviceId: settings.audio} : false; let audio = settings.audio ? {deviceId: settings.audio} : false;
...@@ -841,9 +838,6 @@ async function addLocalMedia(id) { ...@@ -841,9 +838,6 @@ async function addLocalMedia(id) {
let safariScreenshareDone = false; let safariScreenshareDone = false;
async function addShareMedia() { async function addShareMedia() {
if(!getUserPass())
return;
/** @type {MediaStream} */ /** @type {MediaStream} */
let stream = null; let stream = null;
try { try {
...@@ -884,9 +878,6 @@ async function addShareMedia() { ...@@ -884,9 +878,6 @@ async function addShareMedia() {
* @param {File} file * @param {File} file
*/ */
async function addFileMedia(file) { async function addFileMedia(file) {
if(!getUserPass())
return;
let url = URL.createObjectURL(file); let url = URL.createObjectURL(file);
let video = document.createElement('video'); let video = document.createElement('video');
video.src = url; video.src = url;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment