Commit e35e6e5e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix handling of join messages of kind change.

parent 954c23cc
......@@ -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';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment