Ensure that help messages are always shown

This commit is contained in:
JC Brand 2021-02-24 16:34:46 +01:00
parent ce1c5ec7f6
commit 49837c2da4
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ export function parseMessageForCommands (chat, text) {
_converse.chatboxviews.get(chat.get('jid'))?.close();
return true;
} else if (match[1] === 'help') {
chat.set({ 'show_help_messages': false }, { 'silent': true });
chat.set({ 'show_help_messages': true });
return true;
}

View File

@ -210,6 +210,7 @@ export function parseMessageForMUCCommands (muc, text) {
break;
}
case 'help': {
muc.set({ 'show_help_messages': false }, { 'silent': true });
muc.set({ 'show_help_messages': true });
break;
}