Commit 760cafe0 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek Committed by Alain Takoudjou

Display help message after receiving permissions from server.

We used to display the help message too early, which caused us to
display it even if the group doesn't exist or the user doesn't have
the present permission.
parent 66d352b3
...@@ -87,8 +87,6 @@ function setConnected(connected) { ...@@ -87,8 +87,6 @@ function setConnected(connected) {
userbox.classList.remove('invisible'); userbox.classList.remove('invisible');
connectionbox.classList.add('invisible'); connectionbox.classList.add('invisible');
displayUsername(); displayUsername();
displayMessage("Press Present to enable your camera or microphone",
"info");
} else { } else {
resetUsers(); resetUsers();
let userpass = getUserPass(); let userpass = getUserPass();
...@@ -770,6 +768,9 @@ function clearUsername() { ...@@ -770,6 +768,9 @@ function clearUsername() {
function gotPermissions(perms) { function gotPermissions(perms) {
displayUsername(); displayUsername();
setButtonsVisibility(); setButtonsVisibility();
if(serverConnection.permissions.present)
displayMessage("Press Present to enable your camera or microphone",
"info");
} }
const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g; const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g;
......
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