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