From aea216f289d273263a354462f7ac5c54ee28313d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 24 Aug 2020 19:35:01 +0300 Subject: [PATCH] Fix crash when using newThreadCategoryId without categoryAutomation --- src/cfg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfg.js b/src/cfg.js index 09a4633..3fcceab 100644 --- a/src/cfg.js +++ b/src/cfg.js @@ -148,6 +148,7 @@ if (config.greetingMessage || config.greetingAttachment) { // newThreadCategoryId is syntactic sugar for categoryAutomation.newThread if (config.newThreadCategoryId) { + config.categoryAutomation = config.categoryAutomation || {}; config.categoryAutomation.newThread = config.newThreadCategoryId; delete config.newThreadCategoryId; }