1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

Allow anonymous users to send commands.

This commit is contained in:
Juliusz Chroboczek 2020-04-25 18:42:06 +02:00
parent caa2264390
commit 2811506dfb

View file

@ -650,11 +650,6 @@ function addToChatbox(peerId, nick, message, me){
function handleInput() {
let username = getUsername();
if(!username) {
displayError("Sorry, you're anonymous, you cannot chat");
return;
}
let input = document.getElementById('input');
let data = input.value;
input.value = '';
@ -723,6 +718,11 @@ function handleInput() {
me = false;
}
if(!username) {
displayError("Sorry, you're anonymous, you cannot chat");
return;
}
addToChatbox(myid, username, message, me);
send({
type: 'chat',