From 72893e7f7d441157be89e83034df863955644570 Mon Sep 17 00:00:00 2001 From: almeidx Date: Thu, 29 Jul 2021 16:34:11 +0100 Subject: [PATCH] fix autojoin threads --- backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts b/backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts index 84c36768..7dddcedf 100644 --- a/backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts +++ b/backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts @@ -16,7 +16,7 @@ export const AutoJoinThreadSyncEvt = utilityEvt({ async listener(meta) { const config = meta.pluginData.config.get(); - if (config.autojoin_threads) return; + if (!config.autojoin_threads) return; for (const thread of meta.args.threads.values()) { if (!thread.joined && thread.joinable) { await thread.join();