mirror of
https://github.com/jech/galene.git
synced 2024-11-14 04:35:57 +01:00
Fix handling of join messages of kind change.
This commit is contained in:
parent
954c23cc3b
commit
e35e6e5e10
1 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||||
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';
|
||||||
|
|
Loading…
Reference in a new issue