3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 22:21:51 +00:00

fix autojoin threads

This commit is contained in:
almeidx 2021-07-29 16:34:11 +01:00
parent 71cc3176f6
commit 72893e7f7d
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664

View file

@ -16,7 +16,7 @@ export const AutoJoinThreadSyncEvt = utilityEvt({
async listener(meta) { async listener(meta) {
const config = meta.pluginData.config.get(); const config = meta.pluginData.config.get();
if (config.autojoin_threads) return; if (!config.autojoin_threads) return;
for (const thread of meta.args.threads.values()) { for (const thread of meta.args.threads.values()) {
if (!thread.joined && thread.joinable) { if (!thread.joined && thread.joinable) {
await thread.join(); await thread.join();