From e35e6e5e101c8ab1a897f6ad830b6af2c1b79fd9 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 12 Dec 2020 13:45:49 +0100 Subject: [PATCH] Fix handling of join messages of kind change. --- static/galene.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/galene.js b/static/galene.js index 495b944..b95100f 100644 --- a/static/galene.js +++ b/static/galene.js @@ -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';