1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +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');
connectionbox.classList.add('invisible');
displayUsername();
displayMessage("Press Present to enable your camera or microphone",
"info");
} else {
resetUsers();
let userpass = getUserPass();
@ -770,6 +768,9 @@ function clearUsername() {
function gotPermissions(perms) {
displayUsername();
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;