feat: option to allow auto-joining of groups (optionally skip the "request membership" step)

This commit is contained in:
psychobunny
2020-12-01 14:40:49 -05:00
parent 43bbfb6780
commit 685f3c6aa6
8 changed files with 31 additions and 2 deletions

View File

@@ -55,6 +55,10 @@ module.exports = function (Groups) {
payload.disableLeave = values.disableLeave ? '1' : '0';
}
if (values.hasOwnProperty('autojoin')) {
payload.autojoin = values.autojoin ? '1' : '0';
}
if (values.hasOwnProperty('name')) {
await checkNameChange(groupName, values.name);
}