mirror of
https://github.com/jech/galene.git
synced 2024-11-23 00:55: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:
parent
66d352b35a
commit
760cafe02a
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue