1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-26 18:45:57 +01:00

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.
This commit is contained in:
Juliusz Chroboczek 2020-09-10 01:22:06 +02:00 committed by Alain Takoudjou
parent 66d352b35a
commit 760cafe02a

View file

@ -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() {
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;