Fix crash when using newThreadCategoryId without categoryAutomation
parent
8930e5dde8
commit
aea216f289
|
@ -148,6 +148,7 @@ if (config.greetingMessage || config.greetingAttachment) {
|
||||||
|
|
||||||
// newThreadCategoryId is syntactic sugar for categoryAutomation.newThread
|
// newThreadCategoryId is syntactic sugar for categoryAutomation.newThread
|
||||||
if (config.newThreadCategoryId) {
|
if (config.newThreadCategoryId) {
|
||||||
|
config.categoryAutomation = config.categoryAutomation || {};
|
||||||
config.categoryAutomation.newThread = config.newThreadCategoryId;
|
config.categoryAutomation.newThread = config.newThreadCategoryId;
|
||||||
delete config.newThreadCategoryId;
|
delete config.newThreadCategoryId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue