1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Fix handling of join messages of kind change.

This commit is contained in:
Juliusz Chroboczek 2020-12-12 13:45:49 +01:00
parent 954c23cc3b
commit e35e6e5e10

View file

@ -1470,6 +1470,11 @@ async function gotJoined(kind, group, perms, message) {
this.close();
return;
case 'join':
case 'change':
displayUsername();
setButtonsVisibility();
if(kind === 'change')
return;
break;
default:
displayError('Unknown join message');
@ -1477,9 +1482,6 @@ async function gotJoined(kind, group, perms, message) {
return;
}
displayUsername();
setButtonsVisibility();
let input = /** @type{HTMLTextAreaElement} */
(document.getElementById('input'));
input.placeholder = 'Type /help for help';